aboutsummaryrefslogtreecommitdiff
path: root/patches-applied
diff options
context:
space:
mode:
authorvorlon <Unknown>2007-08-27 23:13:49 +0000
committervorlon <Unknown>2007-08-27 23:13:49 +0000
commit8ba2a82a79d01d314e74f46507d6ee9a455c7d0f (patch)
tree0947ea995bd3b26823560bdc694175ab10870f9c /patches-applied
parent1cc0dd3cfc830dffef0eae29cd5cc5efb2f80f72 (diff)
downloadpam-8ba2a82a79d01d314e74f46507d6ee9a455c7d0f.tar.gz
pam-8ba2a82a79d01d314e74f46507d6ee9a455c7d0f.tar.bz2
pam-8ba2a82a79d01d314e74f46507d6ee9a455c7d0f.zip
Fix a couple of thinkos in hurd_no_setfsuid, that were preventing the code
from compiling on the Hurd still. Thanks to Michael Banck for the catch.
Diffstat (limited to 'patches-applied')
-rw-r--r--patches-applied/hurd_no_setfsuid6
1 files changed, 3 insertions, 3 deletions
diff --git a/patches-applied/hurd_no_setfsuid b/patches-applied/hurd_no_setfsuid
index e80eaf83..1228fe86 100644
--- a/patches-applied/hurd_no_setfsuid
+++ b/patches-applied/hurd_no_setfsuid
@@ -22,7 +22,7 @@ Index: Linux-PAM/modules/pam_xauth/pam_xauth.c
FILE *fp;
int i;
uid_t euid;
-+#ifdef HAVE_SYS_FSUID_H
++#ifndef HAVE_SYS_FSUID_H
+ uid_t uid;
+#endif
/* Check this user's <sense> file. */
@@ -43,7 +43,7 @@ Index: Linux-PAM/modules/pam_xauth/pam_xauth.c
+ if (setreuid(-1, uid) == -1) {
+ setreuid(-1, 0);
+ setreuid(0, -1);
-+ if (setreuid(-1, pwd->pw_uid)
++ if (setreuid(-1, pwd->pw_uid))
+ return PAM_CRED_INSUFFICIENT;
+ }
+ }
@@ -67,7 +67,7 @@ Index: Linux-PAM/modules/pam_xauth/pam_xauth.c
int fd, i, debug = 0;
int retval = PAM_SUCCESS;
uid_t systemuser = 499, targetuser = 0, euid;
-+#ifdef HAVE_SYS_FSUID_H
++#ifndef HAVE_SYS_FSUID_H
+ uid_t uid;
+#endif