/[smecontribs]/rpms/smeserver-gitweb/contribs8/smeserver-gitweb-1.1.0-runtime_search_for_pwauth.patch
ViewVC logotype

Annotation of /rpms/smeserver-gitweb/contribs8/smeserver-gitweb-1.1.0-runtime_search_for_pwauth.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download)
Fri Jun 10 15:37:50 2016 UTC (8 years, 5 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-gitweb-1_0_0-19_el5_sme, smeserver-gitweb-1_0_0-20_el5_sme, smeserver-gitweb-1_0_0-17_el5_sme, smeserver-gitweb-1_0_0-18_el5_sme, smeserver-gitweb-1_0_0-22_el5_sme, HEAD
Changes since 1.1: +1 -1 lines
* Fri Jun 10 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.0-17.sme
-  fix short url to repo not working  [SME: 9202]

1 unnilennium 1.1 diff -urN smeserver-gitweb-1.1.0.org/root/etc/e-smith/templates/etc/gitweb.conf/60ExportAuthHook smeserver-gitweb-1.1.0/root/etc/e-smith/templates/etc/gitweb.conf/60ExportAuthHook
2     --- smeserver-gitweb-1.1.0.org/root/etc/e-smith/templates/etc/gitweb.conf/60ExportAuthHook 2016-02-17 11:23:06.448465220 +1030
3     +++ smeserver-gitweb-1.1.0/root/etc/e-smith/templates/etc/gitweb.conf/60ExportAuthHook 2016-02-17 11:23:58.430574814 +1030
4     @@ -2,11 +2,21 @@
5     # Password Check - Returns 0 when password validated OK, or !0 otherwise
6     #
7    
8 unnilennium 1.2 -$pwauth_path= "/usr/lib/httpd/modules/pwauth";
9 unnilennium 1.1 sub trypass \{
10     my $userid= $_[0];
11     my $passwd= $_[1];
12    
13     + # Find the pwauth program. It is in a different location in SME8 and SME9
14     + if( -f "/usr/bin/pwauth" ) \{
15     + $pwauth_path= "/usr/bin/pwauth";
16     + \}
17     + elsif( -f "/usr/lib/httpd/modules/pwauth" ) \{
18     + $pwauth_path= "/usr/lib/httpd/modules/pwauth";
19     + \}
20     + else \{
21     + $pwauth_path = "";
22     + \}
23     +
24     open PWAUTH, "|$pwauth_path" or die("Could not run $pwauth_path");
25     print PWAUTH "$userid\n$passwd\n";
26     close PWAUTH;

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed