diff --git a/lib/config/config.c b/lib/config/config.c index 2fd8793de..cda9b8377 100644 --- a/lib/config/config.c +++ b/lib/config/config.c @@ -916,7 +916,7 @@ int config_write(struct dm_config_tree *cft, argv++; } - if (baton.fp && dm_fclose(baton.fp)) { + if (baton.fp && baton.fp != stdout && dm_fclose(baton.fp)) { stack; r = 0; }