diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-01-19 06:10:29 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-01-19 06:10:29 +0000 |
commit | 5dc81502cbac042e3e66e9f31bd932623ca43e31 (patch) | |
tree | 78304c37cc7358a3b62e0638c5e11f5c51166a5f /auth1.c | |
parent | b100ec95429daa986cb31834e462083adc22e8b6 (diff) |
- (bal) Minor cygwin patch to auth1.c. Suggested by djm.
Diffstat (limited to 'auth1.c')
-rw-r--r-- | auth1.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -329,13 +329,12 @@ do_authloop(Authctxt *authctxt) | |||
329 | (int)pw->pw_uid); | 329 | (int)pw->pw_uid); |
330 | authenticated = 0; | 330 | authenticated = 0; |
331 | } | 331 | } |
332 | #endif | 332 | #else |
333 | |||
334 | /* Special handling for root */ | 333 | /* Special handling for root */ |
335 | if (authenticated && authctxt->pw->pw_uid == 0 && !auth_root_allowed()) | 334 | if (authenticated && authctxt->pw->pw_uid == 0 && !auth_root_allowed()) |
336 | authenticated = 0; | 335 | authenticated = 0; |
337 | 336 | #endif | |
338 | #ifdef USE_PAM /* ISSUE: Right place? */ | 337 | #ifdef USE_PAM |
339 | if (authenticated && !do_pam_account(pw->pw_name, client_user)) | 338 | if (authenticated && !do_pam_account(pw->pw_name, client_user)) |
340 | authenticated = 0; | 339 | authenticated = 0; |
341 | #endif | 340 | #endif |