Report the correct master.passwd path on failure when the -d option is
used.
This commit is contained in:
parent
9fd5198d2d
commit
7cf53d0aab
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=48236
@ -42,7 +42,7 @@ static const char copyright[] =
|
|||||||
static char sccsid[] = "@(#)vipw.c 8.3 (Berkeley) 4/2/94";
|
static char sccsid[] = "@(#)vipw.c 8.3 (Berkeley) 4/2/94";
|
||||||
#endif
|
#endif
|
||||||
static const char rcsid[] =
|
static const char rcsid[] =
|
||||||
"$Id: vipw.c,v 1.5 1997/10/27 07:53:22 charnier Exp $";
|
"$Id: vipw.c,v 1.6 1999/06/26 07:16:42 sheldonh Exp $";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@ -134,7 +134,7 @@ copyfile(from, to)
|
|||||||
if ((nw = write(to, buf + off, nr)) < 0)
|
if ((nw = write(to, buf + off, nr)) < 0)
|
||||||
pw_error(tempname, 1, 1);
|
pw_error(tempname, 1, 1);
|
||||||
if (nr < 0)
|
if (nr < 0)
|
||||||
pw_error(_PATH_MASTERPASSWD, 1, 1);
|
pw_error(masterpasswd, 1, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user