(k_getpwnam): check for `struct spwd'

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5219 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1998-11-22 09:23:18 +00:00
parent d934a8c12f
commit 0b5f2a0f49

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1995, 1996, 1997 Kungliga Tekniska H<>gskolan * Copyright (c) 1995, 1996, 1997, 1998 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden). * (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved. * All rights reserved.
* *
@@ -52,7 +52,7 @@ k_getpwnam (char *user)
struct passwd *p; struct passwd *p;
p = getpwnam (user); p = getpwnam (user);
#ifdef HAVE_GETSPNAM #if defined(HAVE_GETSPNAM) && defined(HAVE_STRUCT_SPWD)
if(p) if(p)
{ {
struct spwd *spwd; struct spwd *spwd;