summaryrefslogtreecommitdiffstats
path: root/sys-utils/losetup.c
diff options
context:
space:
mode:
authorKarel Zak2012-11-12 14:36:29 +0100
committerKarel Zak2012-11-12 14:36:29 +0100
commit65178cb3f24c02f902869a102cd0456aa917bb03 (patch)
tree31a172e322ffb6283cefd88af817a48bdef77d7f /sys-utils/losetup.c
parentlosetup: rename SIZE->SIZELIMIT (diff)
downloadkernel-qcow2-util-linux-65178cb3f24c02f902869a102cd0456aa917bb03.tar.gz
kernel-qcow2-util-linux-65178cb3f24c02f902869a102cd0456aa917bb03.tar.xz
kernel-qcow2-util-linux-65178cb3f24c02f902869a102cd0456aa917bb03.zip
losetup: allow to use -O without --list
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/losetup.c')
-rw-r--r--sys-utils/losetup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys-utils/losetup.c b/sys-utils/losetup.c
index 79d0278b1..2765a38bc 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"));