* [PATCH] git-instaweb: pass through invoking user's path to gitweb CGI scripts
@ 2010-04-15 13:29 Chris Webb
2010-04-16 6:34 ` Eric Wong
2010-04-17 17:32 ` Junio C Hamano
0 siblings, 2 replies; 3+ messages in thread
From: Chris Webb @ 2010-04-15 13:29 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Eric Wong, git
When used with lighttpd or mongoose, git-instaweb previously passed a
hard-coded, default value of PATH to the gitweb CGI script. Use the invoking
user's value for PATH for this instead. (This is already implicitly the
behaviour for other web servers supported by git-instaweb.)
Signed-off-by: Chris Webb <chris@arachsys.com>
---
git-instaweb.sh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/git-instaweb.sh b/git-instaweb.sh
index d4941a9..f608014 100755
--- a/git-instaweb.sh
+++ b/git-instaweb.sh
@@ -212,7 +212,7 @@ server.errorlog = "$fqgitdir/gitweb/error.log"
# variable above and uncomment this
#accesslog.filename = "$fqgitdir/gitweb/access.log"
-setenv.add-environment = ( "PATH" => "/usr/local/bin:/usr/bin:/bin" )
+setenv.add-environment = ( "PATH" => env.PATH )
cgi.assign = ( ".cgi" => "" )
@@ -361,7 +361,7 @@ error_log $fqgitdir/gitweb/error.log
access_log $fqgitdir/gitweb/access.log
#cgi setup
-cgi_env PATH=/usr/local/bin:/usr/bin:/bin,GIT_DIR=$GIT_DIR,GIT_EXEC_PATH=$GIT_EXEC_PATH
+cgi_env PATH=$PATH,GIT_DIR=$GIT_DIR,GIT_EXEC_PATH=$GIT_EXEC_PATH
cgi_interp $PERL
cgi_ext cgi,pl
--
1.7.0.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] git-instaweb: pass through invoking user's path to gitweb CGI scripts
2010-04-15 13:29 [PATCH] git-instaweb: pass through invoking user's path to gitweb CGI scripts Chris Webb
@ 2010-04-16 6:34 ` Eric Wong
2010-04-17 17:32 ` Junio C Hamano
1 sibling, 0 replies; 3+ messages in thread
From: Eric Wong @ 2010-04-16 6:34 UTC (permalink / raw)
To: Chris Webb; +Cc: Junio C Hamano, git
Chris Webb <chris@arachsys.com> wrote:
> When used with lighttpd or mongoose, git-instaweb previously passed a
> hard-coded, default value of PATH to the gitweb CGI script. Use the invoking
> user's value for PATH for this instead. (This is already implicitly the
> behaviour for other web servers supported by git-instaweb.)
>
> Signed-off-by: Chris Webb <chris@arachsys.com>
Looks good to me, thanks Chris.
Acked-by: Eric Wong <normalperson@yhbt.net>
> ---
> git-instaweb.sh | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/git-instaweb.sh b/git-instaweb.sh
> index d4941a9..f608014 100755
> --- a/git-instaweb.sh
> +++ b/git-instaweb.sh
> @@ -212,7 +212,7 @@ server.errorlog = "$fqgitdir/gitweb/error.log"
> # variable above and uncomment this
> #accesslog.filename = "$fqgitdir/gitweb/access.log"
>
> -setenv.add-environment = ( "PATH" => "/usr/local/bin:/usr/bin:/bin" )
> +setenv.add-environment = ( "PATH" => env.PATH )
>
> cgi.assign = ( ".cgi" => "" )
>
> @@ -361,7 +361,7 @@ error_log $fqgitdir/gitweb/error.log
> access_log $fqgitdir/gitweb/access.log
>
> #cgi setup
> -cgi_env PATH=/usr/local/bin:/usr/bin:/bin,GIT_DIR=$GIT_DIR,GIT_EXEC_PATH=$GIT_EXEC_PATH
> +cgi_env PATH=$PATH,GIT_DIR=$GIT_DIR,GIT_EXEC_PATH=$GIT_EXEC_PATH
> cgi_interp $PERL
> cgi_ext cgi,pl
>
> --
> 1.7.0.3
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] git-instaweb: pass through invoking user's path to gitweb CGI scripts
2010-04-15 13:29 [PATCH] git-instaweb: pass through invoking user's path to gitweb CGI scripts Chris Webb
2010-04-16 6:34 ` Eric Wong
@ 2010-04-17 17:32 ` Junio C Hamano
1 sibling, 0 replies; 3+ messages in thread
From: Junio C Hamano @ 2010-04-17 17:32 UTC (permalink / raw)
To: Chris Webb; +Cc: Junio C Hamano, Eric Wong, git
Thanks, both. Will queue.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-04-17 17:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-15 13:29 [PATCH] git-instaweb: pass through invoking user's path to gitweb CGI scripts Chris Webb
2010-04-16 6:34 ` Eric Wong
2010-04-17 17:32 ` Junio C Hamano
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.