summaryrefslogtreecommitdiff
path: root/archival/gunzip.c
diff options
context:
space:
mode:
Diffstat (limited to 'archival/gunzip.c')
-rw-r--r--archival/gunzip.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/archival/gunzip.c b/archival/gunzip.c
index a809fed..61391a3 100644
--- a/archival/gunzip.c
+++ b/archival/gunzip.c
@@ -805,7 +805,11 @@ int gunzip_main (int argc, char** argv)
}
/* Open output fille */
+#if (__GLIBC__ >= 2) && (__GLIBC_MINOR__ >= 1)
outFileNum=open( ofname, O_RDWR|O_CREAT|O_EXCL|O_NOFOLLOW);
+#else
+ outFileNum=open( ofname, O_RDWR|O_CREAT|O_EXCL);
+#endif
if (outFileNum < 0) {
perror(ofname);
do_exit(WARNING);