Blame SOURCES/amanda-3.3.3-check-return.patch

6b2820
diff --git a/common-src/krb5-security.c b/common-src/krb5-security.c
6b2820
index 3f932ec..0c9258b 100644
6b2820
--- a/common-src/krb5-security.c
6b2820
+++ b/common-src/krb5-security.c
6b2820
@@ -394,7 +394,10 @@ krb5_accept(
6b2820
      *(making the userid equal to the dumpuser)
6b2820
      */
6b2820
     pw = getpwnam(CLIENT_LOGIN);
6b2820
-    setreuid(pw->pw_uid, pw->pw_uid);
6b2820
+    if (setreuid(pw->pw_uid, pw->pw_uid) == -1) {
6b2820
+	g_critical("setreuid failed: %s", strerror(errno));
6b2820
+	exit(1);
6b2820
+    }
6b2820
 }
6b2820
 
6b2820
 /*
6b2820