wok-next diff busybox/stuff/busybox-1.22-losetup.u @ rev 15779

busybox: restore losetup default behaviour
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jan 11 11:04:09 2014 +0000 (2014-01-11)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/busybox/stuff/busybox-1.22-losetup.u	Sat Jan 11 11:04:09 2014 +0000
     1.3 @@ -0,0 +1,12 @@
     1.4 +keep previous default behaviour
     1.5 +--- busybox-1.22.0/util-linux/losetup.c
     1.6 ++++ busybox-1.22.0/util-linux/losetup.c
     1.7 +@@ -70,7 +70,7 @@
     1.8 + 	}
     1.9 + 
    1.10 + 	/* -a */
    1.11 +-	if (opt == OPT_a) {
    1.12 ++	if (opt == OPT_a || (!opt && !argv[0])) {
    1.13 + 		int n;
    1.14 + 		for (n = 0; n < MAX_LOOP_NUM; n++) {
    1.15 + 			char *s;