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

Annotation of /rpms/mod_auth_external/sme10/mod_auth_external-no_server_uids.patch

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


Revision 1.1 - (hide annotations) (download)
Thu Feb 4 13:03:11 2016 UTC (8 years, 3 months ago) by vip-ire
Branch: MAIN
CVS Tags: mod_auth_external-2_2_8-6_el7_sme, HEAD
sme10 branch

1 vip-ire 1.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