Remember to convert '/' back to '.' in sysctl before returning

This commit is contained in:
sin 2014-04-17 16:29:52 +01:00
parent e4fa3f5c59
commit 6ba9fe35f1
1 changed files with 4 additions and 0 deletions

View File

@ -59,6 +59,10 @@ getsysctl(char *variable, char **value)
if (p)
*p = '\0';
for (p = variable; *p; p++)
if (*p == '/')
*p = '.';
*value = buf;
close(fd);