diff options
author | tron <tron@pkgsrc.org> | 1999-04-08 18:40:39 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 1999-04-08 18:40:39 +0000 |
commit | 0b11fd4f89c4abe7bd794bea7174fd8c902ce26c (patch) | |
tree | 14658067964a1c180ca54fd93593301732ca4c0b /archivers | |
parent | 62399ab815689b026345083bf3ab041de615a4e5 (diff) | |
download | pkgsrc-0b11fd4f89c4abe7bd794bea7174fd8c902ce26c.tar.gz |
Add patch from NetBSD-current:
Allow softlinks for "bzip2 -c -d" or "bzcat".
Diffstat (limited to 'archivers')
-rw-r--r-- | archivers/bzip2/patches/patch-ab | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/archivers/bzip2/patches/patch-ab b/archivers/bzip2/patches/patch-ab new file mode 100644 index 00000000000..f5714678dcc --- /dev/null +++ b/archivers/bzip2/patches/patch-ab @@ -0,0 +1,50 @@ +$NetBSD: patch-ab,v 1.1 1999/04/08 18:40:39 tron Exp $ + +--- bzip2.c 1998/09/14 02:37:24 1.2 ++++ bzip2.c 1999/04/08 18:34:27 1.4 +@@ -767,14 +767,16 @@ + /*-- + if in doubt, return True + --*/ +-Bool notAStandardFile ( Char* name ) ++Bool notAStandardFile ( Char* name , IntNative allowSymbolicLinks ) + { + IntNative i; + struct MY_STAT statBuf; + +- i = MY_LSTAT ( name, &statBuf ); ++ i = allowSymbolicLinks ? MY_STAT ( name, &statBuf ) : ++ MY_LSTAT ( name, &statBuf ); + if (i != 0) return True; + if (MY_S_IFREG(statBuf.st_mode)) return False; ++ + return True; + } + +@@ -878,7 +880,7 @@ + progName, inName ); + return; + } +- if ( srcMode != SM_I2O && notAStandardFile ( inName )) { ++ if ( srcMode != SM_I2O && notAStandardFile ( inName, False )) { + fprintf ( stderr, "%s: Input file %s is not a normal file, skipping.\n", + progName, inName ); + return; +@@ -1003,7 +1005,7 @@ + progName, inName ); + return; + } +- if ( srcMode != SM_I2O && notAStandardFile ( inName )) { ++ if ( srcMode != SM_I2O && notAStandardFile ( inName, srcMode == SM_F2O )) { + fprintf ( stderr, "%s: Input file %s is not a normal file, skipping.\n", + progName, inName ); + return; +@@ -1133,7 +1135,7 @@ + progName, inName ); + return; + } +- if ( srcMode != SM_I2O && notAStandardFile ( inName )) { ++ if ( srcMode != SM_I2O && notAStandardFile ( inName, True )) { + fprintf ( stderr, "%s: Input file %s is not a normal file, skipping.\n", + progName, inName ); + return; |