]> git.pld-linux.org Git - packages/amanda.git/blob - amanda-krb5-auth.patch
perl 5.38.0 rebuild
[packages/amanda.git] / amanda-krb5-auth.patch
1 --- amanda-3.2.0/amandad-src/amandad.c~ 2010-10-06 18:36:28.000000000 +0200
2 +++ amanda-3.2.0/amandad-src/amandad.c  2010-11-29 14:23:20.580165324 +0100
3 @@ -440,6 +440,11 @@
4         exit_on_qlength = 1;
5      }
6  
7 +    /* krb5 require the euid to be 0 */
8 +    if (strcasecmp(auth, "krb5") == 0) {
9 +       if(seteuid((uid_t)0) != 0) { error("Can't set euid to 0"); };
10 +    }
11 +
12  #ifndef SINGLE_USERID
13      if (geteuid() == 0) {
14         if (strcasecmp(auth, "krb5") != 0) {
15 @@ -474,11 +479,6 @@
16         dbprintf(_("WARNING: argv[0] not defined: check inetd.conf\n"));
17      }
18  
19 -    /* krb5 require the euid to be 0 */
20 -    if (strcasecmp(auth, "krb5") == 0) {
21 -       if(seteuid((uid_t)0) != 0) { error("Can't set euid to 0"); };
22 -    }
23 -
24      /*
25       * Schedule to call protocol_accept() when new security handles
26       * are created on stdin.
This page took 0.106191 seconds and 3 git commands to generate.