summaryrefslogtreecommitdiff
path: root/debian/patches/mount-remount.patch
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-09-17 19:45:51 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-09-17 19:45:51 +0200
commitfa00e45d586b096f485c06a83f968d2d3c6dc7e7 (patch)
treed50f7bfab3ce3b9fa9b34cd6a268710bbe1f7a38 /debian/patches/mount-remount.patch
parentd3befb2c2bba6c6fb19a0c94931be9e625eb05a1 (diff)
parentdc017ca300b2271706c0b167ac5f678b069e5003 (diff)
Merge branch 'master' of git.debian.org:/git/pkg-hurd/hurd
Conflicts: debian/changelog
Diffstat (limited to 'debian/patches/mount-remount.patch')
-rw-r--r--debian/patches/mount-remount.patch67
1 files changed, 0 insertions, 67 deletions
diff --git a/debian/patches/mount-remount.patch b/debian/patches/mount-remount.patch
deleted file mode 100644
index 53eccb2b..00000000
--- a/debian/patches/mount-remount.patch
+++ /dev/null
@@ -1,67 +0,0 @@
-This fixes mount -oremount when just given the mountpoint, e. g.:
-
- % mount -oremount,ro /tmp
-
-* util/mount.c (main): Add a one-argument form for remount.
----
- utils/mount.c | 29 +++++++++++++++++++++++------
- 1 file changed, 23 insertions(+), 6 deletions(-)
-
-diff --git a/utils/mount.c b/utils/mount.c
-index ea30f7a..f1d5750 100644
---- a/utils/mount.c
-+++ b/utils/mount.c
-@@ -526,6 +526,12 @@ main (int argc, char **argv)
-
- fstab = fstab_argp_create (&fstab_params, SEARCH_FMTS, sizeof SEARCH_FMTS);
-
-+ /* This is a convenient way of checking for any `remount' options. */
-+ remount = 0;
-+ err = argz_replace (&options, &options_len, "remount", "update", &remount);
-+ if (err)
-+ error (3, ENOMEM, "collecting mount options");
-+
- if (device) /* two-argument form */
- {
- struct mntent m =
-@@ -548,6 +554,23 @@ main (int argc, char **argv)
- if (err)
- error (2, err, "%s", mountpoint);
- }
-+ else if (mountpoint && remount) /* one-argument remount */
-+ {
-+ struct mntent m =
-+ {
-+ mnt_fsname: mountpoint, /* since we cannot know the device,
-+ using mountpoint here leads to more
-+ helpful error messages */
-+ mnt_dir: mountpoint,
-+ mnt_type: fstype,
-+ mnt_opts: 0,
-+ mnt_freq: 0, mnt_passno: 0
-+ };
-+
-+ err = fstab_add_mntent (fstab, &m, &fs);
-+ if (err)
-+ error (2, err, "%s", mountpoint);
-+ }
- else if (mountpoint) /* one-argument form */
- {
- fs = fstab_find (fstab, mountpoint);
-@@ -557,12 +580,6 @@ main (int argc, char **argv)
- else
- fs = 0;
-
-- /* This is a convenient way of checking for any `remount' options. */
-- remount = 0;
-- err = argz_replace (&options, &options_len, "remount", "update", &remount);
-- if (err)
-- error (3, ENOMEM, "collecting mount options");
--
- if (fs != 0)
- err = do_mount (fs, remount);
- else
---
-1.7.10.4
-
-