Magellan Linux

Contents of /trunk/util-linux/patches/util-linux-2.12q-umount-dont-write-mtab-with-remount.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 153 - (show annotations) (download)
Tue May 8 20:52:56 2007 UTC (17 years ago) by niro
File size: 467 byte(s)
-import

1 Make umount respect the -n option when using -r
2
3 Patch by Derick Swanepoel
4
5 http://bugs.gentoo.org/98675
6
7 --- mount/umount.c
8 +++ mount/umount.c
9 @@ -349,7 +349,8 @@
10 remnt.mnt_type = remnt.mnt_fsname = NULL;
11 remnt.mnt_dir = xstrdup(node);
12 remnt.mnt_opts = xstrdup("ro");
13 - update_mtab(node, &remnt);
14 + if (!nomtab && mtab_is_writable())
15 + update_mtab(node, &remnt);
16 return 0;
17 } else if (errno != EBUSY) { /* hmm ... */
18 perror("remount");