From: Karel Zak Date: Mon, 12 Nov 2012 13:36:29 +0000 (+0100) Subject: losetup: allow to use -O without --list X-Git-Tag: v2.23-rc1~534 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65178cb3f24c02f902869a102cd0456aa917bb03;p=thirdparty%2Futil-linux.git losetup: allow to use -O without --list Signed-off-by: Karel Zak --- diff --git a/sys-utils/losetup.c b/sys-utils/losetup.c index 79d0278b1c..2765a38bc7 100644 --- a/sys-utils/losetup.c +++ b/sys-utils/losetup.c @@ -438,6 +438,7 @@ int main(int argc, char **argv) static const ul_excl_t excl[] = { /* rows and cols in ASCII order */ { 'D','a','c','d','f','j' }, { 'D','c','d','f','l' }, + { 'D','c','d','f','O' }, { 0 } }; int excl_st[ARRAY_SIZE(excl)] = UL_EXCL_STATUS_INIT; @@ -500,6 +501,7 @@ int main(int argc, char **argv) break; case 'O': outarg = optarg; + list = 1; break; case 'p': warn(_("--pass-fd is no longer supported"));