summaryrefslogtreecommitdiff
path: root/src/pwunconv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pwunconv.c')
-rw-r--r--src/pwunconv.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/pwunconv.c b/src/pwunconv.c
index 3d24c2f..a706d60 100644
--- a/src/pwunconv.c
+++ b/src/pwunconv.c
@@ -2,7 +2,7 @@
* Copyright (c) 1989 - 1994, Julianne Frances Haugh
* Copyright (c) 1996 - 2000, Marek Michałkiewicz
* Copyright (c) 2001 - 2005, Tomasz Kłoczko
- * Copyright (c) 2008 - 2011, Nicolas François
+ * Copyright (c) 2008 - 2012, Nicolas François
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -32,7 +32,7 @@
#include <config.h>
-#ident "$Id: pwunconv.c 3640 2011-11-19 21:51:52Z nekral-guest $"
+#ident "$Id: pwunconv.c 3743 2012-05-25 11:51:53Z nekral-guest $"
#include <fcntl.h>
#include <pwd.h>
@@ -221,13 +221,7 @@ int main (int argc, char **argv)
}
}
- if (spw_close () == 0) {
- fprintf (stderr,
- _("%s: failure while writing changes to %s\n"),
- Prog, spw_dbname ());
- SYSLOG ((LOG_ERR, "failure while writing changes to %s", spw_dbname ()));
- fail_exit (3);
- }
+ (void) spw_close (); /* was only open O_RDONLY */
if (pw_close () == 0) {
fprintf (stderr,