aboutsummaryrefslogtreecommitdiff
path: root/gzip.c
diff options
context:
space:
mode:
Diffstat (limited to 'gzip.c')
-rw-r--r--gzip.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gzip.c b/gzip.c
index 983f673e1..76df3ad9a 100644
--- a/gzip.c
+++ b/gzip.c
@@ -1877,7 +1877,11 @@ int gzip_main(int argc, char ** argv)
1877 1877
1878 1878
1879 /* Open output fille */ 1879 /* Open output fille */
1880#if (__GLIBC__ >= 2) && (__GLIBC_MINOR__ >= 1)
1880 outFileNum=open( ofname, O_RDWR|O_CREAT|O_EXCL|O_NOFOLLOW); 1881 outFileNum=open( ofname, O_RDWR|O_CREAT|O_EXCL|O_NOFOLLOW);
1882#else
1883 outFileNum=open( ofname, O_RDWR|O_CREAT|O_EXCL);
1884#endif
1881 if (outFileNum < 0) { 1885 if (outFileNum < 0) {
1882 perror(ofname); 1886 perror(ofname);
1883 do_exit(WARNING); 1887 do_exit(WARNING);