diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-09-16 00:17:43 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-09-16 00:45:12 +0000 |
commit | cfcd7bc73ec91283b700d48b36b2ed68974d4376 (patch) | |
tree | 1ac294e44489eb70c77c09e45641ea07899cd6d3 /debian/patches/sutils-multiple-none.patch | |
parent | f430f620dfa5ec76c9f751d99d249750fb78714e (diff) | |
parent | ebb437fb4b27fa565b9aebb05cda1e9db4ec17ff (diff) |
Merge branch 'upstream-merged'
Diffstat (limited to 'debian/patches/sutils-multiple-none.patch')
-rw-r--r-- | debian/patches/sutils-multiple-none.patch | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/debian/patches/sutils-multiple-none.patch b/debian/patches/sutils-multiple-none.patch deleted file mode 100644 index c787b5a7..00000000 --- a/debian/patches/sutils-multiple-none.patch +++ /dev/null @@ -1,40 +0,0 @@ -Previously it was not possible to add two mount entries with the same -device information to an fstab structure. This is easily fixed by -breaking the assumption, that there is only one possible mount entry -for the "none" device as used by many purely virtual file systems. - -* utils/fstab.c (fstab_find_device): Return NULL if name is "none". ---- - sutils/fstab.c | 12 ++++++++++-- - 1 file changed, 10 insertions(+), 2 deletions(-) - -diff --git a/sutils/fstab.c b/sutils/fstab.c -index e241de6..d3b8b6f 100644 ---- a/sutils/fstab.c -+++ b/sutils/fstab.c -@@ -457,11 +457,19 @@ fs_remount (struct fs *fs) - return err; - } - --/* Returns the FS entry in FSTAB with the device field NAME (there can only -- be one such entry). */ -+/* Returns the FS entry in FSTAB with the device field NAME. -+ -+ In general there can only be one such entry. This holds not true -+ for virtual file systems that use "none" as device name. -+ -+ If name is "none", NULL is returned. This also makes it possible to -+ add more than one entry for the device "none". */ - inline struct fs * - fstab_find_device (const struct fstab *fstab, const char *name) - { -+ if (strcmp (name, "none") == 0) -+ return NULL; -+ - struct fs *fs; - for (fs = fstab->entries; fs; fs = fs->next) - if (strcmp (fs->mntent.mnt_fsname, name) == 0) --- -1.7.10.4 - - |