diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-misc/fsniper/files/fsniper-1.3.1-umask.patch |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-misc/fsniper/files/fsniper-1.3.1-umask.patch')
-rw-r--r-- | app-misc/fsniper/files/fsniper-1.3.1-umask.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app-misc/fsniper/files/fsniper-1.3.1-umask.patch b/app-misc/fsniper/files/fsniper-1.3.1-umask.patch new file mode 100644 index 000000000000..39aecaa3e0d1 --- /dev/null +++ b/app-misc/fsniper/files/fsniper-1.3.1-umask.patch @@ -0,0 +1,18 @@ +X-Git-Url: http://code.l3ib.org/?p=fsniper.git;a=blobdiff_plain;f=src%2Fmain.c;fp=src%2Fmain.c;h=cd49dffebe4b4c728b62c28c1381c4fb6f5ad87d;hp=03a8d701d6f9802ba346b591429e58741ca53479;hb=82cb0b46c48485fd4f6231ce3169c7be87d1ea07;hpb=2bbeb5d6e6b55bb9692c043fcdbeab15d9723c9e + +diff --git a/src/main.c b/src/main.c +index 03a8d70..cd49dff 100644 +--- a/src/main.c ++++ b/src/main.c +@@ -153,7 +153,10 @@ char *get_pid_filename() + void write_pid_file(char *pidfilename) + { + FILE *pidfile; ++ mode_t umask_old; ++ umask_old = umask(0177); + pidfile = fopen(pidfilename, "w"); ++ umask(umask_old); + fprintf(pidfile, "%d", getpid()); + fclose(pidfile); + } + |