Deleted Added
full compact
chpass.c (114594) chpass.c (124692)
1/*-
2 * Copyright (c) 1988, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 * Copyright (c) 2002 Networks Associates Technology, Inc.
5 * All rights reserved.
6 *
7 * Portions of this software were developed for the FreeBSD Project by
8 * ThinkSec AS and NAI Labs, the Security Research Division of Network

--- 36 unchanged lines hidden (view full) ---

45 The Regents of the University of California. All rights reserved.\n";
46#endif /* not lint */
47
48#ifndef lint
49static char sccsid[] = "@(#)chpass.c 8.4 (Berkeley) 4/2/94";
50#endif /* not lint */
51#endif
52#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1988, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 * Copyright (c) 2002 Networks Associates Technology, Inc.
5 * All rights reserved.
6 *
7 * Portions of this software were developed for the FreeBSD Project by
8 * ThinkSec AS and NAI Labs, the Security Research Division of Network

--- 36 unchanged lines hidden (view full) ---

45 The Regents of the University of California. All rights reserved.\n";
46#endif /* not lint */
47
48#ifndef lint
49static char sccsid[] = "@(#)chpass.c 8.4 (Berkeley) 4/2/94";
50#endif /* not lint */
51#endif
52#include <sys/cdefs.h>
53__FBSDID("$FreeBSD: head/usr.bin/chpass/chpass.c 114594 2003-05-03 19:44:46Z obrien $");
53__FBSDID("$FreeBSD: head/usr.bin/chpass/chpass.c 124692 2004-01-18 21:46:39Z charnier $");
54
55#include <sys/param.h>
54
55#include <sys/param.h>
56#include <sys/stat.h>
57#include <sys/signal.h>
58#include <sys/time.h>
59#include <sys/resource.h>
60
56
61#include <ctype.h>
62#include <err.h>
63#include <errno.h>
57#include <err.h>
58#include <errno.h>
64#include <fcntl.h>
65#include <pwd.h>
66#include <stdio.h>
67#include <stdlib.h>
68#include <string.h>
69#include <unistd.h>
70#ifdef YP
71#include <ypclnt.h>
72#endif

--- 214 unchanged lines hidden (view full) ---

287 errx(1, "%s", strerror(EACCES));
288}
289
290static void
291usage(void)
292{
293
294 (void)fprintf(stderr,
59#include <pwd.h>
60#include <stdio.h>
61#include <stdlib.h>
62#include <string.h>
63#include <unistd.h>
64#ifdef YP
65#include <ypclnt.h>
66#endif

--- 214 unchanged lines hidden (view full) ---

281 errx(1, "%s", strerror(EACCES));
282}
283
284static void
285usage(void)
286{
287
288 (void)fprintf(stderr,
295 "Usage: chpass%s %s [user]\n",
289 "usage: chpass%s %s [user]\n",
296#ifdef YP
297 " [-d domain] [-h host]",
298#else
299 "",
300#endif
301 "[-a list] [-p encpass] [-s shell] [-e mmm dd yy]");
302 exit(1);
303}
290#ifdef YP
291 " [-d domain] [-h host]",
292#else
293 "",
294#endif
295 "[-a list] [-p encpass] [-s shell] [-e mmm dd yy]");
296 exit(1);
297}