diff --git a/programs/fileio.c b/programs/fileio.c index 3c45a986434..fba71157591 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -564,8 +564,11 @@ static FILE* FIO_openDstFile(FIO_prefs_t* const prefs, const char* srcFileName, } } { FILE* const f = fopen( dstFileName, "wb" ); - if (f == NULL) + if (f == NULL) { DISPLAYLEVEL(1, "zstd: %s: %s\n", dstFileName, strerror(errno)); + } else { + chmod(dstFileName, 00600); + } return f; } }