X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=nomtab.patch;fp=nomtab.patch;h=0000000000000000000000000000000000000000;hb=e5ab4cc4269d19ad6c083181a0d15d52df30d41e;hp=438d165fb9c9d1ffd72be1d9feaf3f89f9a00059;hpb=4a358f34ef6372de7f75deed105788da683c8eb8;p=util-vserver.git diff --git a/nomtab.patch b/nomtab.patch deleted file mode 100644 index 438d165..0000000 --- a/nomtab.patch +++ /dev/null @@ -1,35 +0,0 @@ -commit 34ab12c667eb08336e8e9b0f414ba26d3ad19a08 -Author: Daniel Hokka Zakrisson -Date: Tue Mar 8 20:04:29 2011 +0100 - - Add nomtab option. - -diff --git a/src/secure-mount.c b/src/secure-mount.c -index ae0650f..53863e3 100644 ---- a/src/secure-mount.c -+++ b/src/secure-mount.c -@@ -98,6 +98,7 @@ struct Options { - - #define XFLAG_NOAUTO 0x01 - #define XFLAG_FILE 0x02 -+#define XFLAG_NOMTAB 0x04 - - static struct option const - CMDLINE_OPTIONS[] = { -@@ -173,6 +174,7 @@ static struct FstabOption { - { "private", MS_PRIVATE, MS_PRIVATE, 0, false }, - { "slave", MS_SLAVE, MS_SLAVE, 0, false }, - { "shared", MS_SHARED, MS_SHARED, 0, false }, -+ { "nomtab", 0, 0, XFLAG_NOMTAB, false }, - }; - - int wrapper_exit_code = 1; -@@ -488,7 +490,7 @@ mountSingle(struct MountInfo const *mnt, struct Options *opt) - else if (!callExternalMount(mnt)) - return false; - -- if (!opt->ignore_mtab && -+ if (!opt->ignore_mtab && (mnt->xflag & XFLAG_NOMTAB)==0 && - updateMtab(mnt, opt)==-1) { - WRITE_MSG(2, "Failed to update mtab-file\n"); - // no error