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

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