diff --git a/sysctl.c b/sysctl.c index b7f2223..e9a3898 100644 --- a/sysctl.c +++ b/sysctl.c @@ -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);