mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
config: skip close of stdin
If the used stream has been stdout, do not close it.
This commit is contained in:
parent
8fb5f63637
commit
a040dd8cfb
@ -916,7 +916,7 @@ int config_write(struct dm_config_tree *cft,
|
|||||||
argv++;
|
argv++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (baton.fp && dm_fclose(baton.fp)) {
|
if (baton.fp && baton.fp != stdout && dm_fclose(baton.fp)) {
|
||||||
stack;
|
stack;
|
||||||
r = 0;
|
r = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user