]>
Commit | Line | Data |
---|---|---|
8d0c18a3 JR |
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) { | |
67942b4c | 9 | + if(seteuid((uid_t)0) != 0) { error("Can't set euid to 0"); }; |
8d0c18a3 JR |
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) { | |
67942b4c | 21 | - if(seteuid((uid_t)0) != 0) { error("Can't set euid to 0"); }; |
8d0c18a3 JR |
22 | - } |
23 | - | |
24 | /* | |
25 | * Schedule to call protocol_accept() when new security handles | |
26 | * are created on stdin. |