X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2Fsecure-mount.c;h=1bc29c37e40a2fe02c4be99b8f161abbfb2acdae;hb=b7785f953cf988346d0f36c5852af39db3d1b00c;hp=5fba02d620d8700918d00894d804b482fbf5622d;hpb=19ef6bad17e92a9cedb7db8eddee2bebf1aa7c4d;p=util-vserver.git diff --git a/src/secure-mount.c b/src/secure-mount.c index 5fba02d..1bc29c3 100644 --- a/src/secure-mount.c +++ b/src/secure-mount.c @@ -1,4 +1,4 @@ -// $Id: secure-mount.c 2480 2007-01-28 11:35:19Z dhozac $ --*- c++ -*-- +// $Id: secure-mount.c 2678 2008-02-16 22:09:30Z dhozac $ --*- c++ -*-- // Copyright (C) 2003 Enrico Scholz // @@ -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; }