mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
- Fix losing setuid/setgid bits on files when saving
- Portlint PR: ports/72652 Submitted by: Renato Botelho <renato@galle.com.br> Approved by: maintainer timeout (2 weeks)
This commit is contained in:
parent
6c96f268b5
commit
d3dede9552
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=120603
@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
PORTNAME= jed
|
PORTNAME= jed
|
||||||
PORTVERSION= 0.99.16
|
PORTVERSION= 0.99.16
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= editors
|
CATEGORIES= editors
|
||||||
MASTER_SITES= ftp://space.mit.edu/pub/davis/jed/v${PORTVERSION:R}/
|
MASTER_SITES= ftp://space.mit.edu/pub/davis/jed/v${PORTVERSION:R}/
|
||||||
DISTNAME= ${PORTNAME}-${PORTVERSION:R}-${PORTVERSION:E}
|
DISTNAME= ${PORTNAME}-${PORTVERSION:R}-${PORTVERSION:E}
|
||||||
@ -19,7 +20,7 @@ LIB_DEPENDS= slang.1:${PORTSDIR}/devel/libslang
|
|||||||
.if !defined(WITHOUT_X11)
|
.if !defined(WITHOUT_X11)
|
||||||
USE_XLIB= yes
|
USE_XLIB= yes
|
||||||
XJED= xjed
|
XJED= xjed
|
||||||
PLIST_SUB+= NOXJED=""
|
PLIST_SUB+= NOXJED=""
|
||||||
.else
|
.else
|
||||||
PLIST_SUB+= NOXJED="@comment "
|
PLIST_SUB+= NOXJED="@comment "
|
||||||
.endif
|
.endif
|
||||||
|
20
editors/jed/files/patch-src-file.c
Normal file
20
editors/jed/files/patch-src-file.c
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
--- src/file.c.orig Wed Oct 13 14:52:57 2004
|
||||||
|
+++ src/file.c Wed Oct 13 14:53:07 2004
|
||||||
|
@@ -173,7 +173,7 @@
|
||||||
|
case FAB$C_STMLF: rfm = "stmlf"; break;
|
||||||
|
case FAB$C_STMCR: rfm = "stmcr"; break;
|
||||||
|
}
|
||||||
|
- mode = s.st_mode & 0777;
|
||||||
|
+ mode = s.st_mode & 07777;
|
||||||
|
}
|
||||||
|
else strcpy (rat_buf, "rat=cr");
|
||||||
|
|
||||||
|
@@ -1729,7 +1729,7 @@
|
||||||
|
#ifdef REAL_UNIX_SYSTEM
|
||||||
|
int u;
|
||||||
|
|
||||||
|
- u = umask (mask & 0777);
|
||||||
|
+ u = umask (mask & 07777);
|
||||||
|
if (default_umask == 0) default_umask = u;
|
||||||
|
#endif
|
||||||
|
}
|
11
editors/jed/files/patch-src-unix.c
Normal file
11
editors/jed/files/patch-src-unix.c
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- src/unix.c.orig Wed Oct 13 14:52:19 2004
|
||||||
|
+++ src/unix.c Wed Oct 13 14:52:32 2004
|
||||||
|
@@ -722,7 +722,7 @@
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
- *mode = m & 0777;
|
||||||
|
+ *mode = m & 07777;
|
||||||
|
|
||||||
|
if (S_ISDIR(m)) return (2);
|
||||||
|
return(1);
|
Loading…
Reference in New Issue
Block a user