svn commit: r395132 - in head/editors/emacs: . files
Ashish SHUKLA
ashish at FreeBSD.org
Sun Aug 23 21:19:19 UTC 2015
Author: ashish
Date: Sun Aug 23 21:19:17 2015
New Revision: 395132
URL: https://svnweb.freebsd.org/changeset/ports/395132
Log:
- Add patches to fix misused umask parameter, caught with FORTIFY_SOURCE
PR: 202574
Submitted by: op
Added:
head/editors/emacs/files/patch-src_unexaix.c (contents, props changed)
head/editors/emacs/files/patch-src_unexcoff.c (contents, props changed)
head/editors/emacs/files/patch-src_unexelf.c (contents, props changed)
Modified:
head/editors/emacs/Makefile
Modified: head/editors/emacs/Makefile
==============================================================================
--- head/editors/emacs/Makefile Sun Aug 23 20:51:39 2015 (r395131)
+++ head/editors/emacs/Makefile Sun Aug 23 21:19:17 2015 (r395132)
@@ -4,6 +4,7 @@
PORTNAME= emacs
PORTVERSION= ${EMACS_VER}
PORTEPOCH= 3
+PORTREVISION= 1
CATEGORIES= editors ipv6
MASTER_SITES= GNU
PKGNAMESUFFIX?= 24
Added: head/editors/emacs/files/patch-src_unexaix.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/editors/emacs/files/patch-src_unexaix.c Sun Aug 23 21:19:17 2015 (r395132)
@@ -0,0 +1,11 @@
+--- src/unexaix.c.orig 2015-08-22 16:04:45 UTC
++++ src/unexaix.c
+@@ -478,7 +478,7 @@ mark_x (const char *name)
+ int um;
+ int new = 0; /* for PERROR */
+
+- um = umask (777);
++ um = umask (0777);
+ umask (um);
+ if (stat (name, &sbuf) == -1)
+ {
Added: head/editors/emacs/files/patch-src_unexcoff.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/editors/emacs/files/patch-src_unexcoff.c Sun Aug 23 21:19:17 2015 (r395132)
@@ -0,0 +1,11 @@
+--- src/unexcoff.c.orig 2015-08-22 16:05:00 UTC
++++ src/unexcoff.c
+@@ -451,7 +451,7 @@ mark_x (const char *name)
+ int um;
+ int new = 0; /* for PERROR */
+
+- um = umask (777);
++ um = umask (0777);
+ umask (um);
+ if (stat (name, &sbuf) == -1)
+ {
Added: head/editors/emacs/files/patch-src_unexelf.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/editors/emacs/files/patch-src_unexelf.c Sun Aug 23 21:19:17 2015 (r395132)
@@ -0,0 +1,11 @@
+--- src/unexelf.c.orig 2015-08-22 16:05:06 UTC
++++ src/unexelf.c
+@@ -1323,7 +1323,7 @@ temacs:
+ if (stat (new_name, &stat_buf) != 0)
+ fatal ("Can't stat (%s): %s", new_name, strerror (errno));
+
+- mask = umask (777);
++ mask = umask (0777);
+ umask (mask);
+ stat_buf.st_mode |= 0111 & ~mask;
+ if (chmod (new_name, stat_buf.st_mode) != 0)
More information about the svn-ports-all
mailing list