diff options
author | Roy Marples <roy@marples.name> | 2008-03-23 19:51:41 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-03-23 19:51:41 +0000 |
commit | ce644e17353b8c29fad129db98a6f4d971561560 (patch) | |
tree | cb04d2ce273d7eaf0595bbfa6f7bb04e772cc6a8 /src/rc | |
parent | ec4721dd7f91af650b3d385522b3fcd53a55b00e (diff) |
Report mounts in reverse order, Gentoo #214150.
Diffstat (limited to 'src/rc')
-rw-r--r-- | src/rc/mountinfo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rc/mountinfo.c b/src/rc/mountinfo.c index 3adff5de..0ad28231 100644 --- a/src/rc/mountinfo.c +++ b/src/rc/mountinfo.c @@ -453,7 +453,6 @@ int mountinfo(int argc, char **argv) } nodes = find_mounts(&args); rc_stringlist_free(args.mounts); - rc_stringlist_sort(&nodes); REG_FREE(args.fstype_regex); REG_FREE(args.skip_fstype_regex); @@ -464,6 +463,8 @@ int mountinfo(int argc, char **argv) result = EXIT_FAILURE; quiet = rc_yesno(getenv("EINFO_QUIET")); + + /* We should report the mounts in reverse order to ease unmounting */ TAILQ_FOREACH_REVERSE(s, nodes, rc_stringlist, entries) { if (point_regex && regexec(point_regex, s->value, 0, NULL, 0) != 0) |