mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Open pid file wronly
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17434 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
917cb25b7d
commit
144e22edcc
1 changed files with 1 additions and 1 deletions
|
@ -4576,7 +4576,7 @@ printf(
|
|||
if (getuid () == 0)
|
||||
#endif
|
||||
{
|
||||
int desc = open(pidfile, O_EXCL|O_CREAT, 0644);
|
||||
int desc = open(pidfile, O_EXCL|O_CREAT|O_WRONLY, 0644);
|
||||
fptr = fdopen(desc, "w");
|
||||
|
||||
if (fptr == 0)
|
||||
|
|
Loading…
Reference in a new issue