From 42d87f67e095be5f0269a67893059a3452e3d4f0 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sat, 9 Jun 2007 12:35:54 +0000 Subject: [PATCH 1/1] Add /usr/xpg4/bin to the PATH to make sure the POSIX version of id is used on Solaris. Closes BR#1733788. Thanks to Brent Chivers for report and fix. --- privoxy-generic.init | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/privoxy-generic.init b/privoxy-generic.init index d9991f3b..936fc3b4 100755 --- a/privoxy-generic.init +++ b/privoxy-generic.init @@ -39,6 +39,19 @@ # # Revisions : # $Log: privoxy-generic.init,v $ +# Revision 1.7 2006/10/14 14:12:22 fabiankeil +# Print warnings if the user tries to run Privoxy as root +# or if the script is run without root privileges; +# only use "--user" if run with root privileges and +# don't depend on $USER being set to root. Fixes BR 779781. +# +# Apparently $USER isn't set on all systems, +# but it also didn't work if the user only +# increased her privileges with su or sudo, +# but still had her real uid in $USER. +# +# Thanks to Florian Effenberger for reporting. +# # Revision 1.6 2006/07/18 14:48:47 david__schmidt # Reorganizing the repository: swapping out what was HEAD (the old 3.1 branch) # with what was really the latest development (the v_3_0_branch branch) @@ -79,7 +92,7 @@ # logfile is writable by $P_USER (logfile is defined in config), and that # there is suitable write access for $P_PIDFILE. -PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin/:/usr/bin:/sbin:/bin +PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/xpg4/bin:/usr/bin:/sbin:/bin P_NAME=Privoxy # Path to executable. P_DAEMON=privoxy -- 2.39.2