aboutsummaryrefslogtreecommitdiffstats
path: root/editors/joe/files
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2002-09-18 19:13:27 +0800
committerijliao <ijliao@FreeBSD.org>2002-09-18 19:13:27 +0800
commit2ce083d9887a30aa19afcedec149698c219d24a8 (patch)
tree0e1a61b0ce251017aa9736c10919ce143a6a06b3 /editors/joe/files
parent7e944a1db25d30c2ce15966cb08b225910aeddbd (diff)
downloadfreebsd-ports-gnome-2ce083d9887a30aa19afcedec149698c219d24a8.tar.gz
freebsd-ports-gnome-2ce083d9887a30aa19afcedec149698c219d24a8.tar.zst
freebsd-ports-gnome-2ce083d9887a30aa19afcedec149698c219d24a8.zip
drop sgid/suid on backup files
PR: 42920 Submitted by: maintainer
Diffstat (limited to 'editors/joe/files')
-rw-r--r--editors/joe/files/patch-ufile.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/editors/joe/files/patch-ufile.c b/editors/joe/files/patch-ufile.c
new file mode 100644
index 000000000000..fcea6cc24d15
--- /dev/null
+++ b/editors/joe/files/patch-ufile.c
@@ -0,0 +1,11 @@
+--- ufile.c.orig Wed Sep 18 19:09:53 2002
++++ ufile.c Wed Sep 18 19:10:19 2002
+@@ -149,7 +149,7 @@
+ f=open(from,O_RDONLY);
+ if(f<0) return -1;
+ if(fstat(f,&sbuf)<0) return -1;
+- g=creat(to,sbuf.st_mode);
++ g=creat(to,sbuf.st_mode&~(S_ISGID|S_ISUID));
+ if(g<0)
+ {
+ close(f);