mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-02 12:51:07 +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
3767bc44fc
commit
edfa10c7fe
1 changed files with 1 additions and 1 deletions
|
@ -4576,7 +4576,7 @@ printf(
|
||||||
if (getuid () == 0)
|
if (getuid () == 0)
|
||||||
#endif
|
#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");
|
fptr = fdopen(desc, "w");
|
||||||
|
|
||||||
if (fptr == 0)
|
if (fptr == 0)
|
||||||
|
|
Loading…
Reference in a new issue