aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2005-12-21 17:00:25 +0000
committerRob Landley <rob@landley.net>2005-12-21 17:00:25 +0000
commitce88793698eb7d53034ff4489f6d484f2b03f8ce (patch)
tree37cca22cb087752dba745f9ed6af6e38ce20be26 /util-linux
parent90854679703217971ebeafe34836473b2e1fff9b (diff)
downloadbusybox-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.
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/losetup.c3
1 files changed, 2 insertions, 1 deletions
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;
37die_failed: 38die_failed:
38 bb_perror_msg_and_die("%s",argv[optind]); 39 bb_perror_msg_and_die("%s",argv[optind]);
39 40