X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=qga%2Fmain.c;h=c2ba5d91393e7ba525e4c88591b22e07c0ec9071;hb=31c6ed2077377b7313b28188a7811a9be866a3e4;hp=1841759db270295c96262f215f92b408ac6f472c;hpb=47b5264eb3e1cd2825e48d28fd0d1b239ed53974;p=qemu.git diff --git a/qga/main.c b/qga/main.c index 1841759db..c2ba5d913 100644 --- a/qga/main.c +++ b/qga/main.c @@ -478,7 +478,7 @@ static void become_daemon(const char *pidfile) } } - umask(0); + umask(S_IRWXG | S_IRWXO); sid = setsid(); if (sid < 0) { goto fail; @@ -1002,7 +1002,8 @@ int main(int argc, char **argv) case 's': service = optarg; if (strcmp(service, "install") == 0) { - return ga_install_service(path, log_filepath); + const char *fixed_state_dir; + return ga_install_service(path, log_filepath, state_dir); } else if (strcmp(service, "uninstall") == 0) { return ga_uninstall_service(); } else {