| Summary: | busybox umount -t fstype without -a causes unexpected umount | ||
|---|---|---|---|
| Product: | Busybox | Reporter: | Alexander Zubkov <zubkov318> |
| Component: | Standard Compliance | Assignee: | unassigned |
| Status: | RESOLVED FIXED | ||
| Severity: | major | CC: | busybox-cvs |
| Priority: | P5 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
| Attachments: | umount-fstype.patch | ||
|
Description
Alexander Zubkov
2018-02-19 11:55:16 UTC
Does this help?
// If we're not umounting all, we need at least one argument.
- if (!(opt & OPT_ALL) && !fstype) {
+ // Note: "-t FSTYPE" does not imply -a.
+ if (!(opt & OPT_ALL)) {
if (!argv[0])
bb_show_usage();
m = NULL;
commit b083e8cc538ba6b27e19da541ca6a0f7ceb7daee Author: Denys Vlasenko <vda.linux@googlemail.com> Date: Tue Feb 20 17:58:19 2018 +0100 umount: fix "umount -t FSTYPE MNTPOINT" acting as if -a is specified While at it, add -t to --help, and fix comments which say that -t is ignored > Does this help?
I think so. I had the same idea in my patch. Thank you.
|