]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
losetup: allow to use -O without --list
authorKarel Zak <kzak@redhat.com>
Mon, 12 Nov 2012 13:36:29 +0000 (14:36 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 12 Nov 2012 13:36:29 +0000 (14:36 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/losetup.c

index 79d0278b1ce9d270b0f63a6cde20078a24522b5b..2765a38bc7c47f29f206493f9328d54bd1a92c55 100644 (file)
@@ -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"));