Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure in Ubuntu 20.04 #19

Open
buuth opened this issue Jun 19, 2021 · 0 comments
Open

Failure in Ubuntu 20.04 #19

buuth opened this issue Jun 19, 2021 · 0 comments

Comments

@buuth
Copy link

buuth commented Jun 19, 2021

Thank you for your plugin, however it does not work in Ubuntu
dmidecode -s system-uuid
/sys/firmware/dmi/tables/smbios_entry_point: Permission denied
/dev/mem: Permission denied

My fix is
if(buf[0] == 0) {
rstream = popen("cat /etc/machine-id", "r");
fread(buf, sizeof(char), sizeof(buf), rstream);
pclose(rstream);
}

nikitatg added a commit to nikitatg/platform_device_id that referenced this issue Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant