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

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