diff options
Diffstat (limited to 'util-linux')
| -rw-r--r-- | util-linux/losetup.c | 3 |
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; | ||
| 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 | ||
