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

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