X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fsecure-mount.c;h=a76f7a074ea0d9d1c011aa521ae1ede352995476;hb=65ee8e8556e0c293b039fcea0cdcde40cf412483;hp=a722f1fc637d7c75d03e30d69b17e44a7820f937;hpb=c46a812d668f4327392254c3fbbfef5ed00c330e;p=util-vserver.git diff --git a/src/secure-mount.c b/src/secure-mount.c index a722f1f..a76f7a0 100644 --- 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; }