- Protect fluxbox-generate_menu from doing unsafe shell expansions.

- Fixed startfluxbox to work with the standard Bourne shell.

Approved by:	Jeremy Messenger (MAINTAINER)
This commit is contained in:
Ruslan Ermilov 2004-03-14 16:23:20 +00:00
parent 00a09b915b
commit 1bbd3f7f9f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=103998
3 changed files with 23 additions and 4 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= fluxbox
PORTVERSION= 0.9.8
PORTREVISION= 1
CATEGORIES= x11-wm
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= fluxbox

View file

@ -1,5 +1,5 @@
--- util/fluxbox-generate_menu.in.orig Thu Jan 22 00:45:46 2004
+++ util/fluxbox-generate_menu.in Thu Jan 22 00:51:27 2004
--- util/fluxbox-generate_menu.in Mon Jan 12 13:14:55 2004
+++ util/fluxbox-generate_menu.in Sun Mar 14 12:02:01 2004
@@ -45,7 +45,7 @@
@ -20,6 +20,15 @@
-q KDE-prefix; idem dito
@@ -109,7 +109,7 @@
case `uname` in
Linux|*BSD)
find_it() {
- which $1 > /dev/null 2>&1 && shift && $*
+ which $1 > /dev/null 2>&1 && shift && "$@"
}
find_it_options() {
@@ -614,19 +614,19 @@
# FBRUNOPTIONS='-font 10x20 -fg grey -bg black -title run'

View file

@ -1,5 +1,14 @@
--- util/startfluxbox.in.orig Thu Jan 22 00:52:42 2004
+++ util/startfluxbox.in Thu Jan 22 00:56:37 2004
--- util/startfluxbox.in Sat Dec 6 18:29:21 2003
+++ util/startfluxbox.in Sun Mar 14 11:52:50 2004
@@ -6,7 +6,7 @@
exec sh ~/.fluxbox/startup
else
if [ ! -d ~/.fluxbox ]; then
- mkdir -p ~/.fluxbox/{backgrounds,styles,pixmaps}
+ mkdir -p ~/.fluxbox/backgrounds ~/.fluxbox/styles ~/.fluxbox/pixmaps
fi
if [ ! -r ~/.fluxbox/startup ]; then
cat << EOF > ~/.fluxbox/startup
@@ -24,7 +24,7 @@
@pkgbindir@/bsetroot -solid black