diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-07-27 08:58:37 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-07-27 08:58:37 +0400 |
commit | ea839a52aebd6a29a8dde70412b0e7b8d68568b4 (patch) | |
tree | 10026e84c8b73d4e5ad6704ab1cb78ea7c63c305 /src/pwunconv.c | |
parent | 6c1662a897fd34b5b0b0174ab83552b016d05e8d (diff) | |
download | shadow-ea839a52aebd6a29a8dde70412b0e7b8d68568b4.tar.gz |
Imported Upstream version 4.1.5.1upstream/4.1.5.1upstream
Diffstat (limited to 'src/pwunconv.c')
-rw-r--r-- | src/pwunconv.c | 12 |
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, |