From a8f1136ee50388f7fc1c7936379416bbee368957 Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Mon, 28 Jul 2008 13:35:47 -0700 Subject: Fix a bug in the uid-restoring code in the hurd_no_setfsuid patch; thanks to Tomas Mraz for indirectly bringing this to my attention --- debian/patches-applied/hurd_no_setfsuid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'debian/patches-applied/hurd_no_setfsuid') diff --git a/debian/patches-applied/hurd_no_setfsuid b/debian/patches-applied/hurd_no_setfsuid index 71ae5d77..76501432 100644 --- a/debian/patches-applied/hurd_no_setfsuid +++ b/debian/patches-applied/hurd_no_setfsuid @@ -55,7 +55,7 @@ Index: Linux-PAM/modules/pam_xauth/pam_xauth.c + if (uid == pwd->pw_uid) + setreuid(uid, euid); + else { -+ if (setreuid(-1, 0) == -1) ++ if (setreuid(-1, 0) != -1) + setreuid(uid, -1); + setreuid(-1, euid); + } -- cgit v1.2.3