diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2000-03-05 09:27:28 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2000-03-05 09:27:28 +0000 |
commit | cf3d05cb927395f57268d4c69af78d82e622830e (patch) | |
tree | 3de0b56eba19bd1f893342599ed85dccf4029798 /archivers/arc/files/patch-aj | |
parent | This is a setuid root binary. sprintf()s of DNS hostnames into undersized (diff) |
From OpenBSD: generate tempfiles securely with mkstemps()
Approved by: Maintainer
Notes
Notes:
svn path=/head/; revision=26556
Diffstat (limited to 'archivers/arc/files/patch-aj')
-rw-r--r-- | archivers/arc/files/patch-aj | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/archivers/arc/files/patch-aj b/archivers/arc/files/patch-aj new file mode 100644 index 000000000000..f7dc13a56ce6 --- /dev/null +++ b/archivers/arc/files/patch-aj @@ -0,0 +1,24 @@ +--- ./arcio.c.orig Tue Aug 10 23:03:25 1999 ++++ ./arcio.c Tue Aug 10 23:01:56 1999 +@@ -46,7 +46,7 @@ + return 0; /* then signal end of archive */ + + if (hdrver != ARCMARK) { /* check archive validity */ +- if (warn) { ++ if (arcwarn) { + printf("An entry in %s has a bad header.\n", arcname); + nerrs++; + } +@@ -63,10 +63,10 @@ + if (feof(f) && first) + arcdie("%s is not an archive", arcname); + +- if (changing && warn) ++ if (changing && arcwarn) + arcdie("%s is corrupted -- changes disallowed", arcname); + +- if (warn) ++ if (arcwarn) + printf(" %d bytes skipped.\n", try); + + if (feof(f)) |