[svn-upgrade] Integrating new upstream version, shadow (20000826)

This commit is contained in:
nekral-guest
2007-10-07 11:44:14 +00:00
parent 446e664caa
commit efd7efa9f1
196 changed files with 7676 additions and 9088 deletions

View File

@@ -30,7 +30,7 @@
#include <config.h>
#include "rcsid.h"
RCSID("$Id: hushed.c,v 1.3 1997/12/07 23:27:05 marekm Exp $")
RCSID("$Id: hushed.c,v 1.4 2000/08/26 18:27:17 marekm Exp $")
#include <sys/types.h>
#include <stdio.h>
@@ -68,7 +68,7 @@ hushed(const struct passwd *pw)
*/
if (hushfile[0] != '/') {
strcat(strcat(strcpy(buf, pw->pw_dir), "/"), hushfile);
snprintf(buf, sizeof(buf), "%s/%s", pw->pw_dir, hushfile);
return (access(buf, F_OK) == 0);
}