update.c (79452) | update.c (90297) |
---|---|
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. --- 19 unchanged lines hidden (view full) --- 28 * Mountain View, California 94043 29 */ 30 31#ifndef lint 32#if 0 33static char sccsid[] = "@(#)update.c 1.2 91/03/11 Copyr 1986 Sun Micro"; 34#endif 35static 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. --- 19 unchanged lines hidden (view full) --- 28 * Mountain View, California 94043 29 */ 30 31#ifndef lint 32#if 0 33static char sccsid[] = "@(#)update.c 1.2 91/03/11 Copyr 1986 Sun Micro"; 34#endif 35static const char rcsid[] = |
36 "$FreeBSD: head/usr.sbin/rpc.ypupdated/update.c 79452 2001-07-09 09:24:06Z brian $"; | 36 "$FreeBSD: head/usr.sbin/rpc.ypupdated/update.c 90297 2002-02-06 13:30:31Z des $"; |
37#endif /* not lint */ 38 39/* 40 * Copyright (C) 1986, 1989, Sun Microsystems, Inc. 41 */ 42 43/* 44 * Administrative tool to add a new user to the publickey database --- 28 unchanged lines hidden (view full) --- 73static char SHELL[] = "/bin/sh"; 74static char YPDBPATH[]="/var/yp"; /* This is defined but not used! */ 75static char PKMAP[] = "publickey.byname"; 76static char UPDATEFILE[] = "updaters"; 77static char PKFILE[] = "/etc/publickey"; 78#endif /* YP */ 79 80#ifdef YP | 37#endif /* not lint */ 38 39/* 40 * Copyright (C) 1986, 1989, Sun Microsystems, Inc. 41 */ 42 43/* 44 * Administrative tool to add a new user to the publickey database --- 28 unchanged lines hidden (view full) --- 73static char SHELL[] = "/bin/sh"; 74static char YPDBPATH[]="/var/yp"; /* This is defined but not used! */ 75static char PKMAP[] = "publickey.byname"; 76static char UPDATEFILE[] = "updaters"; 77static char PKFILE[] = "/etc/publickey"; 78#endif /* YP */ 79 80#ifdef YP |
81static int _openchild __P(( char *, FILE **, FILE ** )); | 81static int _openchild(char *, FILE **, FILE **); |
82 83/* 84 * Determine if requester is allowed to update the given map, 85 * and update it if so. Returns the yp status, which is zero 86 * if there is no access violation. 87 */ 88mapupdate(requester, mapname, op, keylen, key, datalen, data) 89 char *requester; --- 152 unchanged lines hidden (view full) --- 242#define ERR_MALLOC 2 243#define ERR_READ 3 244#define ERR_WRITE 4 245#define ERR_DBASE 5 246#define ERR_KEY 6 247extern char *malloc(); 248#endif 249 | 82 83/* 84 * Determine if requester is allowed to update the given map, 85 * and update it if so. Returns the yp status, which is zero 86 * if there is no access violation. 87 */ 88mapupdate(requester, mapname, op, keylen, key, datalen, data) 89 char *requester; --- 152 unchanged lines hidden (view full) --- 242#define ERR_MALLOC 2 243#define ERR_READ 3 244#define ERR_WRITE 4 245#define ERR_DBASE 5 246#define ERR_KEY 6 247extern char *malloc(); 248#endif 249 |
250static int match __P(( char * , char * )); | 250static int match(char *, char *); |
251 252/* 253 * Determine if requester is allowed to update the given map, 254 * and update it if so. Returns the status, which is zero 255 * if there is no access violation. This function updates 256 * the local file and then shuts up. 257 */ 258int --- 105 unchanged lines hidden --- | 251 252/* 253 * Determine if requester is allowed to update the given map, 254 * and update it if so. Returns the status, which is zero 255 * if there is no access violation. This function updates 256 * the local file and then shuts up. 257 */ 258int --- 105 unchanged lines hidden --- |