losetup: allow to use -O without --list

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2012-11-12 14:36:29 +01:00
parent 4ad996d7f9
commit 65178cb3f2
1 changed files with 2 additions and 0 deletions

View 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"));