X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fsecure-mount.c;h=1a3bc19c46410d86618a25a17f19a96f96aa22cb;hb=ed9da2ab4417a8d1e97bb5386433809518015166;hp=4cf996f4519b21bf65d4745b55db3912d3fa90bc;hpb=2d5d2b0bb8a115b5e16d1b4977a0099211330812;p=util-vserver.git diff --git a/src/secure-mount.c b/src/secure-mount.c index 4cf996f..1a3bc19 100644 --- a/src/secure-mount.c +++ b/src/secure-mount.c @@ -460,7 +460,7 @@ mountSingle(struct MountInfo const *mnt, struct Options const *opt) return false; } if ((mnt->flag & MS_BIND) && - (mnt->flag & ~(MS_BIND|MS_REC))) { + (mnt->mask & ~(MS_BIND|MS_REC))) { /* This is needed to put us in the new mountpoint */ if (!secureChdir(mnt->dst, opt)) return false;