Deleted Added
full compact
update.c (33647) update.c (40301)
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 "$Id: update.c,v 1.2 1997/07/29 06:54:16 charnier Exp $";
35 "$Id: update.c,v 1.3 1998/02/20 04:38:20 jb Exp $";
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

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

162 struct rlimit rl;
163
164 if (pipe(pdto) < 0) {
165 goto error1;
166 }
167 if (pipe(pdfrom) < 0) {
168 goto error2;
169 }
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

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

162 struct rlimit rl;
163
164 if (pipe(pdto) < 0) {
165 goto error1;
166 }
167 if (pipe(pdfrom) < 0) {
168 goto error2;
169 }
170#ifdef VFORK
171 switch (pid = vfork()) {
172#else
173 switch (pid = fork()) {
170 switch (pid = fork()) {
174#endif
175 case -1:
176 goto error3;
177
178 case 0:
179 /*
180 * child: read from pdto[0], write into pdfrom[1]
181 */
182 (void)close(0);

--- 176 unchanged lines hidden ---
171 case -1:
172 goto error3;
173
174 case 0:
175 /*
176 * child: read from pdto[0], write into pdfrom[1]
177 */
178 (void)close(0);

--- 176 unchanged lines hidden ---