projects
/
util-vserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
If /proc/sys is inaccessible, assume there are no settings.
[util-vserver.git]
/
src
/
secure-mount.c
diff --git
a/src/secure-mount.c
b/src/secure-mount.c
index
a722f1f
..
a76f7a0
100644
(file)
--- a/
src/secure-mount.c
+++ b/
src/secure-mount.c
@@
-279,8
+279,8
@@
updateMtab(struct MountInfo const *mnt, struct Options const *opt)
goto err0;
}
- if (flock(fd, LOCK_EX)==-1) {
- perror("secure-mount: flock()");
+ if (lockf(fd, F_LOCK, 0)==-1) {
+ perror("secure-mount: lockf()");
goto err1;
}