/[smeserver]/rpms/mod_auth_external/sme7/mod_auth_external-no_server_uids.patch
ViewVC logotype

Contents of /rpms/mod_auth_external/sme7/mod_auth_external-no_server_uids.patch

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


Revision 1.1 - (show annotations) (download)
Tue Jun 12 16:38:23 2007 UTC (16 years, 11 months ago) by slords
Branch: MAIN
CVS Tags: mod_auth_external-2_2_8-4_el4_sme, HEAD
Import on branch sme7 of package mod_auth_external-2.2.8-4.el4.sme.src.rpm

1 diff -Nur -x '*.orig' -x '*.rej' mod_auth_external-2.2.8/pwauth/pwauth.c mezzanine_patched_mod_auth_external-2.2.8/pwauth/pwauth.c
2 --- mod_auth_external-2.2.8/pwauth/pwauth.c 2003-10-23 10:57:41.000000000 -0400
3 +++ mezzanine_patched_mod_auth_external-2.2.8/pwauth/pwauth.c 2006-03-20 18:36:47.000000000 -0500
4 @@ -653,9 +653,6 @@
5 #endif
6 }
7
8 -/* Array of uid numbers that may run this program */
9 -int server_uids[]= {SERVER_UIDS, 0};
10 -
11 main(int argc, char **argv)
12 {
13 #ifdef ENV_METHOD
14 @@ -664,7 +661,7 @@
15 char login[BFSZ+1], passwd[BFSZ+1];
16 char *c, *strchr();
17 #endif
18 -int uid,i;
19 +int i;
20 int passwd_ok;
21 struct rlimit rlim;
22
23 @@ -672,13 +669,6 @@
24 rlim.rlim_cur = rlim.rlim_max = 0;
25 (void)setrlimit(RLIMIT_CORE, &rlim);
26
27 - /* Check that we were invoked by one of the listed uids or by root */
28 - uid= getuid();
29 - for (i= 0; server_uids[i] != 0 && server_uids[i] != uid; i++)
30 - ;
31 - if (uid != server_uids[i])
32 - exit(2);
33 -
34 /* Get the arguments (login and password) */
35 #ifdef ENV_METHOD
36 if ((login= getenv("USER")) == NULL ||

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