From: Javier Domingo Cansino Date: Wed, 11 Nov 2015 13:10:11 +0000 (+0000) Subject: paths: substitute literal with macro X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fb6e4604fb689d1918db3804a766b865cfaacbef;p=oweals%2Frpcd.git paths: substitute literal with macro Signed-off-by: Javier Domingo Cansino --- diff --git a/main.c b/main.c index 3b6841b..7c161b5 100644 --- a/main.c +++ b/main.c @@ -74,8 +74,8 @@ int main(int argc, char **argv) } } - if (stat("/var/run/rpcd", &s)) - mkdir("/var/run/rpcd", 0700); + if (stat(RPC_UCI_DIR_PREFIX, &s)) + mkdir(RPC_UCI_DIR_PREFIX, 0700); umask(0077);