sysctl: tiny code shrink
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
fbedacfc8c
commit
c2fdd41f5f
@ -56,8 +56,7 @@ static void sysctl_dots_to_slashes(char *name)
|
|||||||
*cptr = '\0';
|
*cptr = '\0';
|
||||||
//bb_error_msg("trying:'%s'", name);
|
//bb_error_msg("trying:'%s'", name);
|
||||||
if (access(name, F_OK) == 0) {
|
if (access(name, F_OK) == 0) {
|
||||||
if (cptr != end) /* prevent trailing '/' */
|
*cptr = '/';
|
||||||
*cptr = '/';
|
|
||||||
//bb_error_msg("replaced:'%s'", name);
|
//bb_error_msg("replaced:'%s'", name);
|
||||||
last_good = cptr;
|
last_good = cptr;
|
||||||
goto again;
|
goto again;
|
||||||
|
Loading…
Reference in New Issue
Block a user