1 diff -urNp -x '*.orig' amanda-3.5.1.org/amandad-src/amandad.c amanda-3.5.1/amandad-src/amandad.c
2 --- amanda-3.5.1.org/amandad-src/amandad.c 2017-12-01 14:26:32.000000000 +0100
3 +++ amanda-3.5.1/amandad-src/amandad.c 2021-05-08 10:23:15.193461026 +0200
4 @@ -476,6 +476,11 @@ main(
8 + /* krb5 require the euid to be 0 */
9 + if (strcasecmp(auth, "krb5") == 0) {
10 + if(seteuid((uid_t)0) != 0) { error("Can't set euid to 0"); };
15 if (strcasecmp(auth, "krb5") != 0) {
16 @@ -510,11 +515,6 @@ main(
17 dbprintf(_("WARNING: argv[0] not defined: check inetd.conf\n"));
20 - /* krb5 require the euid to be 0 */
21 - if (strcasecmp(auth, "krb5") == 0) {
22 - if(seteuid((uid_t)0) != 0) { error("Can't set euid to 0"); };
26 * Schedule to call protocol_accept() when new security handles
27 * are created on stdin.