View | Details | Raw Unified | Return to bug 85920
Collapse All | Expand All

(-)Makefile (-1 / +1 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	unzip
8
PORTNAME=	unzip
9
PORTVERSION=	5.52
9
PORTVERSION=	5.52
10
PORTREVISION=	1
10
PORTREVISION=	2
11
CATEGORIES?=	archivers
11
CATEGORIES?=	archivers
12
MASTER_SITES=	ftp://ftp.info-zip.org/pub/infozip/src/ \
12
MASTER_SITES=	ftp://ftp.info-zip.org/pub/infozip/src/ \
13
		${MASTER_SITE_TEX_CTAN:S,%SUBDIR%,tools/zip/info-zip/src/,}
13
		${MASTER_SITE_TEX_CTAN:S,%SUBDIR%,tools/zip/info-zip/src/,}
(-)files/patch-unix_unix.c (+36 lines)
Added Link Here
1
--- unix/unix.c.orig	Sat Feb 26 16:43:42 2005
2
+++ unix/unix.c	Fri Sep  9 14:36:35 2005
3
@@ -1042,6 +1042,16 @@
4
     ush z_uidgid[2];
5
     int have_uidgid_flg;
6
 
7
+/*---------------------------------------------------------------------------
8
+    Change the file permissions from default ones to those stored in the
9
+    zipfile.
10
+  ---------------------------------------------------------------------------*/
11
+	  
12
+#ifndef NO_CHMOD
13
+    if (fchmod(fileno(G.outfile), 0xffff & G.pInfo->file_attr))
14
+        perror("chmod (file attributes) error");
15
+#endif
16
+
17
     fclose(G.outfile);
18
 
19
 /*---------------------------------------------------------------------------
20
@@ -1150,16 +1160,6 @@
21
               " (warning) cannot set times"));
22
 #endif /* ?AOS_VS */
23
     }
24
-
25
-/*---------------------------------------------------------------------------
26
-    Change the file permissions from default ones to those stored in the
27
-    zipfile.
28
-  ---------------------------------------------------------------------------*/
29
-
30
-#ifndef NO_CHMOD
31
-    if (chmod(G.filename, filtattr(__G__ G.pInfo->file_attr)))
32
-        perror("chmod (file attributes) error");
33
-#endif
34
 
35
 } /* end function close_outfile() */
36
 

Return to bug 85920