diff options
| author | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-12-21 17:00:25 +0000 |
|---|---|---|
| committer | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-12-21 17:00:25 +0000 |
| commit | 0d8a20b454cd14c4da4c5bee507ca4e3df638e92 (patch) | |
| tree | 37cca22cb087752dba745f9ed6af6e38ce20be26 | |
| parent | bc379bba14b6953ae6e1bf8601c78c0aa8849138 (diff) | |
| download | busybox-w32-0d8a20b454cd14c4da4c5bee507ca4e3df638e92.tar.gz busybox-w32-0d8a20b454cd14c4da4c5bee507ca4e3df638e92.tar.bz2 busybox-w32-0d8a20b454cd14c4da4c5bee507ca4e3df638e92.zip | |
When you went "losetup -d /dev/loop0 /dev/loop1" the error message was strange.
git-svn-id: svn://busybox.net/trunk/busybox@12971 69ca8d6d-28ef-0310-b511-8ec308f3f277
| -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 | ||
