From 0b42a6a8cf94dd05434cf5554449a6b19d47fb1e Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Fri, 7 Oct 2005 11:34:50 +0000 Subject: - remove superfluous C statements ";;" in decompress_unzip.c, dpkg_deb.c ifconfig.c - gzip.c: see if O_NOFOLLOW is defined before using it, else take alternate path closes bug #221 (partially; The rest will follow later). --- archival/gzip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archival/gzip.c') diff --git a/archival/gzip.c b/archival/gzip.c index 6cf4b395e..a527f0e40 100644 --- a/archival/gzip.c +++ b/archival/gzip.c @@ -1270,7 +1270,7 @@ int gzip_main(int argc, char **argv) strcat(path, ".gz"); /* Open output file */ -#if (__GLIBC__ >= 2) && (__GLIBC_MINOR__ >= 1) +#if (__GLIBC__ >= 2) && (__GLIBC_MINOR__ >= 1) && defined O_NOFOLLOW outFileNum = open(path, O_RDWR | O_CREAT | O_EXCL | O_NOFOLLOW); #else -- cgit v1.2.3-55-g6feb