diff options
Diffstat (limited to 'coreutils/uudecode.c')
-rw-r--r-- | coreutils/uudecode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/uudecode.c b/coreutils/uudecode.c index 81a86cb..0298a4b 100644 --- a/coreutils/uudecode.c +++ b/coreutils/uudecode.c @@ -179,7 +179,7 @@ int uudecode_main(int argc UNUSED_PARAM, char **argv) } dst_stream = stdout; if (NOT_LONE_DASH(outname)) { - dst_stream = xfopen(outname, "w"); + dst_stream = xfopen_for_write(outname); fchmod(fileno(dst_stream), mode & (S_IRWXU | S_IRWXG | S_IRWXO)); } free(line); |