X-Git-Url: http://git.archive.openwrt.org/?p=project%2Frpcd.git;a=blobdiff_plain;f=main.c;h=7c161b5e5a5347820c5d4d744effcf1cae9d4906;hp=75f5cee0fa15195f243f5c3e41394389b5516f38;hb=HEAD;hpb=b86774de65406bf8b8daed92a0a994fdc8225a4e diff --git a/main.c b/main.c index 75f5cee..7c161b5 100644 --- a/main.c +++ b/main.c @@ -2,7 +2,7 @@ * rpcd - UBUS RPC server * * Copyright (C) 2013 Felix Fietkau - * Copyright (C) 2013 Jo-Philipp Wich + * Copyright (C) 2013-2014 Jo-Philipp Wich * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -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);