Browse Source

Clean up after pw_file().

millert@ ok
deraadt@ ok to commit
OPENBSD_3_1
mpech 23 years ago
parent
commit
c68a3ac420
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      src/lib/libutil/passwd.c

+ 6
- 3
src/lib/libutil/passwd.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: passwd.c,v 1.31 2002/02/16 21:27:29 millert Exp $ */
/* $OpenBSD: passwd.c,v 1.32 2002/04/10 10:11:03 mpech Exp $ */
/* /*
* Copyright (c) 1987, 1993, 1994, 1995 * Copyright (c) 1987, 1993, 1994, 1995
@ -34,7 +34,7 @@
*/ */
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
static char rcsid[] = "$OpenBSD: passwd.c,v 1.31 2002/02/16 21:27:29 millert Exp $";
static char rcsid[] = "$OpenBSD: passwd.c,v 1.32 2002/04/10 10:11:03 mpech Exp $";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
#include <sys/types.h> #include <sys/types.h>
@ -607,8 +607,11 @@ pw_error(name, err, eval)
else else
warn(NULL); warn(NULL);
} }
if (master)
if (master) {
warnx("%s: unchanged", master); warnx("%s: unchanged", master);
free(master);
}
pw_abort(); pw_abort();
exit(eval); exit(eval);
} }

Loading…
Cancel
Save