aboutsummaryrefslogtreecommitdiffstats
path: root/src/rename_device.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rename_device.c')
-rw-r--r--src/rename_device.c2
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);