diff options
author | Rob Landley <rob@landley.net> | 2005-12-21 17:00:25 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2005-12-21 17:00:25 +0000 |
commit | ce88793698eb7d53034ff4489f6d484f2b03f8ce (patch) | |
tree | 37cca22cb087752dba745f9ed6af6e38ce20be26 | |
parent | 90854679703217971ebeafe34836473b2e1fff9b (diff) | |
download | busybox-w32-ce88793698eb7d53034ff4489f6d484f2b03f8ce.tar.gz busybox-w32-ce88793698eb7d53034ff4489f6d484f2b03f8ce.tar.bz2 busybox-w32-ce88793698eb7d53034ff4489f6d484f2b03f8ce.zip |
When you went "losetup -d /dev/loop0 /dev/loop1" the error message was strange.
-rw-r--r-- | include/usage.h | 2 | ||||
-rw-r--r-- | util-linux/losetup.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/include/usage.h b/include/usage.h index 12c45b45f..9de9df8f3 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -1657,7 +1657,7 @@ | |||
1657 | "\t-f\t\toutput data as the log grows" | 1657 | "\t-f\t\toutput data as the log grows" |
1658 | 1658 | ||
1659 | #define losetup_trivial_usage \ | 1659 | #define losetup_trivial_usage \ |
1660 | "[-od] LOOPDEVICE [FILE]\n" | 1660 | "[-od] LOOPDEVICE [FILE]" |
1661 | #define losetup_full_usage \ | 1661 | #define losetup_full_usage \ |
1662 | "Associate LOOPDEVICE with FILE, or display current association.\n\n" \ | 1662 | "Associate LOOPDEVICE with FILE, or display current association.\n\n" \ |
1663 | "Options:\n" \ | 1663 | "Options:\n" \ |
diff --git a/util-linux/losetup.c b/util-linux/losetup.c index b2af63dc0..44721bd34 100644 --- a/util-linux/losetup.c +++ b/util-linux/losetup.c | |||
@@ -33,7 +33,8 @@ int losetup_main (int argc, char **argv) | |||
33 | switch(getopt(argc,argv, "do:")) { | 33 | switch(getopt(argc,argv, "do:")) { |
34 | case 'd': | 34 | case 'd': |
35 | /* detach takes exactly one argument */ | 35 | /* detach takes exactly one argument */ |
36 | if(optind+1==argc && !del_loop(argv[optind])) return EXIT_SUCCESS; | 36 | if(optind+1!=argc) bb_show_usage(); |
37 | if(!del_loop(argv[optind])) return EXIT_SUCCESS; | ||
37 | die_failed: | 38 | die_failed: |
38 | bb_perror_msg_and_die("%s",argv[optind]); | 39 | bb_perror_msg_and_die("%s",argv[optind]); |
39 | 40 | ||