diff options
author | Bill Nottingham <notting@redhat.com> | 2007-08-30 01:06:54 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2007-08-30 01:06:54 +0000 |
commit | d5342a9dc6215bf454109c777d65fdafcf92db4f (patch) | |
tree | 3c28f613af0d631a9b15ccee51f0966cbfcbd0b2 /src/rename_device.c | |
parent | 389faf0665ea54ffb857d0608abd382ff6163a69 (diff) | |
download | initscripts-d5342a9dc6215bf454109c777d65fdafcf92db4f.tar initscripts-d5342a9dc6215bf454109c777d65fdafcf92db4f.tar.gz initscripts-d5342a9dc6215bf454109c777d65fdafcf92db4f.tar.bz2 initscripts-d5342a9dc6215bf454109c777d65fdafcf92db4f.tar.xz initscripts-d5342a9dc6215bf454109c777d65fdafcf92db4f.zip |
fix open() call
Diffstat (limited to 'src/rename_device.c')
-rw-r--r-- | src/rename_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rename_device.c b/src/rename_device.c index 0ec08b46..8fb06997 100644 --- a/src/rename_device.c +++ b/src/rename_device.c @@ -352,7 +352,7 @@ void take_lock() { int lockfd; while (1) { - lockfd = open(LOCKFILE, O_RDWR|O_CREAT|O_EXCL); + lockfd = open(LOCKFILE, O_RDWR|O_CREAT|O_EXCL, 0644); if (lockfd != -1) { write(lockfd,"%d\n",getpid()); close(lockfd); |