SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
28
archivers/arc/patches/patch-arc_c
Normal file
28
archivers/arc/patches/patch-arc_c
Normal file
|
@ -0,0 +1,28 @@
|
|||
--- arc.c.orig Sat Aug 7 15:06:42 2010
|
||||
+++ arc.c Mon May 30 11:55:37 2011
|
||||
@@ -129,6 +129,7 @@ main(num, arg) /* system entry point */
|
||||
#if UNIX
|
||||
struct stat sbuf;
|
||||
#endif
|
||||
+ int fd;
|
||||
|
||||
if (num < 3) {
|
||||
printf("ARC - Archive utility, Version 5.21p, created on 08/07/2010\n");
|
||||
@@ -228,7 +229,7 @@ main(num, arg) /* system entry point */
|
||||
#if !MSDOS
|
||||
{
|
||||
strcat(arctemp, "AXXXXXX");
|
||||
- int fd = mkstemp(arctemp);
|
||||
+ fd = mkstemp(arctemp);
|
||||
if (fd == -1)
|
||||
{
|
||||
fprintf(stderr, "Unable to create temporary files: %s\n", strerror(errno));
|
||||
@@ -298,7 +299,7 @@ main(num, arg) /* system entry point */
|
||||
keepbak = 1;
|
||||
|
||||
else if (*a == 'W') /* suppress warnings */
|
||||
- warn = 0;
|
||||
+ arcwarn = 0;
|
||||
#if !DOS
|
||||
else if (*a == 'I') /* image mode, no ASCII/EBCDIC x-late */
|
||||
image = !image;
|
Loading…
Add table
Add a link
Reference in a new issue