Deleted Added
full compact
update.c (50477) update.c (79452)
1/*
2 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
3 * unrestricted use provided that this legend is included on all tape
4 * media and as a part of the software program in whole or part. Users
5 * may copy or modify Sun RPC without charge, but are not authorized
6 * to license or distribute it to anyone else except as part of a product or
7 * program developed by the user or with the express written consent of
8 * Sun Microsystems, Inc.

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

27 * 2550 Garcia Avenue
28 * Mountain View, California 94043
29 */
30#ifndef lint
31#if 0
32static char sccsid[] = "@(#)update.c 1.2 91/03/11 Copyr 1986 Sun Micro";
33#endif
34static const char rcsid[] =
1/*
2 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
3 * unrestricted use provided that this legend is included on all tape
4 * media and as a part of the software program in whole or part. Users
5 * may copy or modify Sun RPC without charge, but are not authorized
6 * to license or distribute it to anyone else except as part of a product or
7 * program developed by the user or with the express written consent of
8 * Sun Microsystems, Inc.

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

27 * 2550 Garcia Avenue
28 * Mountain View, California 94043
29 */
30#ifndef lint
31#if 0
32static char sccsid[] = "@(#)update.c 1.2 91/03/11 Copyr 1986 Sun Micro";
33#endif
34static const char rcsid[] =
35 "$FreeBSD: head/usr.bin/newkey/update.c 50477 1999-08-28 01:08:13Z peter $";
35 "$FreeBSD: head/usr.bin/newkey/update.c 79452 2001-07-09 09:24:06Z brian $";
36#endif
37
38/*
39 * Copyright (C) 1986, 1989, Sun Microsystems, Inc.
40 */
41
42/*
43 * Administrative tool to add a new user to the publickey database

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

183 for (i = rl.rlim_max - 1; i >= 3; i--) {
184 (void) close(i);
185 }
186 com = malloc((unsigned) strlen(command) + 6);
187 if (com == NULL) {
188 _exit(~0);
189 }
190 (void)sprintf(com, "exec %s", command);
36#endif
37
38/*
39 * Copyright (C) 1986, 1989, Sun Microsystems, Inc.
40 */
41
42/*
43 * Administrative tool to add a new user to the publickey database

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

183 for (i = rl.rlim_max - 1; i >= 3; i--) {
184 (void) close(i);
185 }
186 com = malloc((unsigned) strlen(command) + 6);
187 if (com == NULL) {
188 _exit(~0);
189 }
190 (void)sprintf(com, "exec %s", command);
191 execl(SHELL, basename(SHELL), "-c", com, NULL);
191 execl(SHELL, basename(SHELL), "-c", com, (char *)NULL);
192 _exit(~0);
193
194 default:
195 /*
196 * parent: write into pdto[1], read from pdfrom[0]
197 */
198 *fto = fdopen(pdto[1], "w");
199 (void)close(pdto[0]);

--- 155 unchanged lines hidden ---
192 _exit(~0);
193
194 default:
195 /*
196 * parent: write into pdto[1], read from pdfrom[0]
197 */
198 *fto = fdopen(pdto[1], "w");
199 (void)close(pdto[0]);

--- 155 unchanged lines hidden ---