paths: substitute literal with macro

Signed-off-by: Javier Domingo Cansino <javierdo1@gmail.com>
This commit is contained in:
Javier Domingo Cansino 2015-11-11 13:10:11 +00:00 committed by John Crispin
parent f00890cd6e
commit fb6e4604fb

4
main.c
View file

@ -74,8 +74,8 @@ int main(int argc, char **argv)
} }
} }
if (stat("/var/run/rpcd", &s)) if (stat(RPC_UCI_DIR_PREFIX, &s))
mkdir("/var/run/rpcd", 0700); mkdir(RPC_UCI_DIR_PREFIX, 0700);
umask(0077); umask(0077);