[OpenWrt-Devel] [PATCH][RPCD] paths: substitute literal with macro

Javier Domingo Cansino javierdo1 at gmail.com
Wed Nov 11 08:10:11 EST 2015


Signed-off-by: Javier Domingo Cansino <javierdo1 at gmail.com>
---
 main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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);
 
-- 
2.6.2
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list