FreeBSD Bugzilla – Attachment 171462 Details for
Bug 197129
games/scid: vulnerable files with mode 666 below /usr/local/share/scid/books
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch removing hardcoded file permissions
scid.diff (text/plain), 4.65 KB, created by
Friedrich Volkmann
on 2016-06-15 14:07:28 UTC
(
hide
)
Description:
patch removing hardcoded file permissions
Filename:
MIME Type:
Creator:
Friedrich Volkmann
Created:
2016-06-15 14:07:28 UTC
Size:
4.65 KB
patch
obsolete
>diff -ruN scid.orig/Makefile scid/Makefile >--- scid.orig/Makefile 2016-06-15 11:12:28.605912000 +0200 >+++ scid/Makefile 2016-06-15 16:04:22.382415000 +0200 >@@ -3,7 +3,7 @@ > > PORTNAME= scid > PORTVERSION= 4.6.2 >-PORTREVISION= 1 >+PORTREVISION= 2 > CATEGORIES= games databases > MASTER_SITES= SF/${PORTNAME}/Scid/Scid%204.6/ > >@@ -31,8 +31,6 @@ > OPTIMIZE="${CXXFLAGS} -fno-rtti -fno-exceptions" \ > WARNINGS="" > >-ALL_TARGET= all strip >- > post-configure: > @${REINPLACE_CMD} -e 's|g++|${CXX}|g; s|gcc|${CC}|g' \ > ${WRKSRC}/Makefile \ >diff -ruN scid.orig/files/patch-Makefile.conf scid/files/patch-Makefile.conf >--- scid.orig/files/patch-Makefile.conf 2016-06-15 11:12:28.625459000 +0200 >+++ scid/files/patch-Makefile.conf 2016-06-15 15:18:10.435239000 +0200 >@@ -1,6 +1,6 @@ >---- Makefile.conf.orig 2015-07-05 06:23:10 UTC >-+++ Makefile.conf >-@@ -156,32 +156,32 @@ toga: >+--- Makefile.conf.orig 2015-07-05 08:23:10.000000000 +0200 >++++ Makefile.conf 2016-06-15 15:17:03.873995000 +0200 >+@@ -156,32 +156,35 @@ > install: $(INSTALL) > > install_scid: all_scid >@@ -23,25 +23,29 @@ > - cp -r ./img/* "$(SHAREDIR)/img/" > - install -m 755 -d "$(SHAREDIR)/tcl/" > - cp -r ./tcl/* "$(SHAREDIR)/tcl/" >-+ install -m 755 -d "$(DESTDIR)$(SHAREDIR)" >-+ install -m 755 -d "$(DESTDIR)$(BINDIR)" >-+ install -m 755 $(SCRIPTS) $(EXECS) "$(DESTDIR)$(BINDIR)" >-+ rm -f "$(DESTDIR)$(BINDIR)/scid" >-+ @echo "#!/bin/sh" > "$(DESTDIR)$(BINDIR)/scid" >-+ @echo 'exec "$(BINDIR)/tkscid" "$(SHAREDIR)/tcl/start.tcl" "$$@"' >> "$(DESTDIR)$(BINDIR)/scid" >-+ chmod 755 "$(DESTDIR)$(BINDIR)/scid" >-+ chmod +x "$(DESTDIR)$(BINDIR)/scid" >-+ install -m 644 -p scid.eco "$(DESTDIR)$(SHAREDIR)" >-+ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/books" >-+ install -m 666 ./books/*.* "$(DESTDIR)$(SHAREDIR)/books/" >-+ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/bases" >-+ if test -d ./bases; then install -m 666 ./bases/*.* "$(DESTDIR)$(SHAREDIR)/bases/" ; fi >-+ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/html" >-+ cp -r ./html/* "$(DESTDIR)$(SHAREDIR)/html/" >-+ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/img/" >-+ cp -r ./img/* "$(DESTDIR)$(SHAREDIR)/img/" >-+ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/tcl/" >-+ cp -r ./tcl/* "$(DESTDIR)$(SHAREDIR)/tcl/" >++ install -d "$(DESTDIR)$(BINDIR)" >++ ${BSD_INSTALL_PROGRAM} $(EXECS) "$(DESTDIR)$(BINDIR)" >++ ${BSD_INSTALL_SCRIPT} $(SCRIPTS) "$(DESTDIR)$(BINDIR)" >++ rm -f scid.sh >++ @echo "#!/bin/sh" > scid.sh >++ @echo 'exec "$(BINDIR)/tkscid" "$(SHAREDIR)/tcl/start.tcl" "$$@"' >> scid.sh >++ ${BSD_INSTALL_SCRIPT} scid.sh "$(DESTDIR)$(BINDIR)/scid" >++ install -d "$(DESTDIR)$(SHAREDIR)" >++ ${BSD_INSTALL_DATA} -p scid.eco "$(DESTDIR)$(SHAREDIR)" >++ install -d "$(DESTDIR)$(SHAREDIR)/books" >++ ${BSD_INSTALL_DATA} ./books/*.* "$(DESTDIR)$(SHAREDIR)/books/" >++ install -d "$(DESTDIR)$(SHAREDIR)/bases" >++ if test -d ./bases; then ${INSTALL_DATA} ./bases/*.* "$(DESTDIR)$(SHAREDIR)/bases/" ; fi >++ install -d "$(DESTDIR)$(SHAREDIR)/html" >++ ${BSD_INSTALL_DATA} ./html/*.* "$(DESTDIR)$(SHAREDIR)/html/" >++ install -d "$(DESTDIR)$(SHAREDIR)/html/bitmaps" >++ ${BSD_INSTALL_DATA} ./html/bitmaps/*.* "$(DESTDIR)$(SHAREDIR)/html/bitmaps/" >++ install -d "$(DESTDIR)$(SHAREDIR)/html/bitmaps/mini" >++ ${BSD_INSTALL_DATA} ./html/bitmaps/mini/* "$(DESTDIR)$(SHAREDIR)/html/bitmaps/mini" >++ find img -type d -exec install -d "$(DESTDIR)$(SHAREDIR)/{}" \; >++ find img -type f -exec ${BSD_INSTALL_DATA} {} "$(DESTDIR)$(SHAREDIR)/{}" \; >++ find tcl -type d -exec install -d "$(DESTDIR)$(SHAREDIR)/{}" \; >++ find tcl -type f -exec ${BSD_INSTALL_DATA} {} "$(DESTDIR)$(SHAREDIR)/{}" \; > > install_engines: all_engines > - install -m 755 -d "$(SHAREDIR)/engines" >@@ -49,15 +53,14 @@ > - install ./engines/phalanx-scid/phalanx-scid "$(SHAREDIR)/engines/phalanx-scid" > - install -m 755 -d "$(SHAREDIR)/engines/togaII1.2.1a" > - install ./engines/togaII1.2.1a/src/togaII "$(SHAREDIR)/engines/togaII1.2.1a/" >-+ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/engines" >-+ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/engines/phalanx-scid" >-+ install ./engines/phalanx-scid/phalanx-scid "$(DESTDIR)$(SHAREDIR)/engines/phalanx-scid" >-+ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/engines/togaII1.2.1a" >-+ install ./engines/togaII1.2.1a/src/togaII "$(DESTDIR)$(SHAREDIR)/engines/togaII1.2.1a/" >++ install -d "$(DESTDIR)$(SHAREDIR)/engines/phalanx-scid" >++ ${BSD_INSTALL_PROGRAM} ./engines/phalanx-scid/phalanx-scid "$(DESTDIR)$(SHAREDIR)/engines/phalanx-scid" >++ install -d "$(DESTDIR)$(SHAREDIR)/engines/togaII1.2.1a" >++ ${BSD_INSTALL_PROGRAM} ./engines/togaII1.2.1a/src/togaII "$(DESTDIR)$(SHAREDIR)/engines/togaII1.2.1a/" > > install_mac: all > install -m 755 -d dist/Scid.app/Contents/MacOS >-@@ -261,7 +261,7 @@ clean: >+@@ -261,7 +264,7 @@ > > ### To make the executable files smaller: type "make strip". > #
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
bsd
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 197129
: 171462