git://git.onelab.eu
/
util-vserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
util-vserver 0.30.215.
[util-vserver.git]
/
src
/
secure-mount.c
diff --git
a/src/secure-mount.c
b/src/secure-mount.c
index
5fba02d
..
1bc29c3
100644
(file)
--- a/
src/secure-mount.c
+++ b/
src/secure-mount.c
@@
-1,4
+1,4
@@
-// $Id: secure-mount.c 2
480 2007-01-28 11:35:19
Z dhozac $ --*- c++ -*--
+// $Id: secure-mount.c 2
678 2008-02-16 22:09:30
Z dhozac $ --*- c++ -*--
// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
//
// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
//
@@
-279,8
+279,8
@@
updateMtab(struct MountInfo const *mnt, struct Options const *opt)
goto err0;
}
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;
}
goto err1;
}