summaryrefslogtreecommitdiff
path: root/auth.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-03-22 03:04:08 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-03-22 03:04:08 +0000
commit7ebb635d812d68772ce3fb0b64d798c54fbfab71 (patch)
tree6bf832ba30e5d9643ed75677ce9ff6155fe7e549 /auth.c
parent6328ab39891ea64ccd5c91e9be2ec5c4f843bbd0 (diff)
- markus@cvs.openbsd.org 2002/03/19 14:27:39
[auth.c auth1.c auth2.c] make getpwnamallow() allways call pwcopy()
Diffstat (limited to 'auth.c')
-rw-r--r--auth.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/auth.c b/auth.c
index d521eae28..f368faf21 100644
--- a/auth.c
+++ b/auth.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: auth.c,v 1.39 2002/03/19 10:49:35 markus Exp $"); 26RCSID("$OpenBSD: auth.c,v 1.40 2002/03/19 14:27:39 markus Exp $");
27 27
28#ifdef HAVE_LOGIN_H 28#ifdef HAVE_LOGIN_H
29#include <login.h> 29#include <login.h>
@@ -48,6 +48,7 @@ RCSID("$OpenBSD: auth.c,v 1.39 2002/03/19 10:49:35 markus Exp $");
48#include "bufaux.h" 48#include "bufaux.h"
49#include "uidswap.h" 49#include "uidswap.h"
50#include "tildexpand.h" 50#include "tildexpand.h"
51#include "misc.h"
51 52
52/* import */ 53/* import */
53extern ServerOptions options; 54extern ServerOptions options;
@@ -469,5 +470,5 @@ getpwnamallow(const char *user)
469 auth_close(as); 470 auth_close(as);
470#endif 471#endif
471#endif 472#endif
472 return (pw); 473 return (pwcopy(pw));
473} 474}