const poisoning.
This commit is contained in:
parent
11474d8d50
commit
cc06efc9db
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: yp_passwd.c,v 1.18 1998/07/12 15:18:55 mrg Exp $ */
|
||||
/* $NetBSD: yp_passwd.c,v 1.19 1998/07/26 22:15:38 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1990, 1993, 1994
|
||||
|
@ -38,7 +38,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "from: @(#)local_passwd.c 8.3 (Berkeley) 4/2/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: yp_passwd.c,v 1.18 1998/07/12 15:18:55 mrg Exp $");
|
||||
__RCSID("$NetBSD: yp_passwd.c,v 1.19 1998/07/26 22:15:38 mycroft Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -169,12 +169,12 @@ yp_passwd(username)
|
|||
yppasswd.newpw.pw_passwd = getnewpasswd(pw, &yppasswd.oldpass);
|
||||
|
||||
/* tell rpc.yppasswdd */
|
||||
yppasswd.newpw.pw_name = pw->pw_name;
|
||||
yppasswd.newpw.pw_name = strdup(pw->pw_name);
|
||||
yppasswd.newpw.pw_uid = pw->pw_uid;
|
||||
yppasswd.newpw.pw_gid = pw->pw_gid;
|
||||
yppasswd.newpw.pw_gecos = pw->pw_gecos;
|
||||
yppasswd.newpw.pw_dir = pw->pw_dir;
|
||||
yppasswd.newpw.pw_shell = pw->pw_shell;
|
||||
yppasswd.newpw.pw_gecos = strdup(pw->pw_gecos);
|
||||
yppasswd.newpw.pw_dir = strdup(pw->pw_dir);
|
||||
yppasswd.newpw.pw_shell = strdup(pw->pw_shell);
|
||||
|
||||
client = clnt_create(master, YPPASSWDPROG, YPPASSWDVERS, "udp");
|
||||
if (client == NULL) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: quota.c,v 1.19 1998/07/12 04:56:06 mrg Exp $ */
|
||||
/* $NetBSD: quota.c,v 1.20 1998/07/26 22:17:53 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1990, 1993
|
||||
|
@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1990, 1993\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)quota.c 8.4 (Berkeley) 4/28/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: quota.c,v 1.19 1998/07/12 04:56:06 mrg Exp $");
|
||||
__RCSID("$NetBSD: quota.c,v 1.20 1998/07/26 22:17:53 mycroft Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -99,12 +99,12 @@ int getnfsquota __P((struct statfs *, struct fstab *, struct quotause *,
|
|||
struct quotause *getprivs __P((long id, int quotatype));
|
||||
int getufsquota __P((struct statfs *, struct fstab *, struct quotause *,
|
||||
long, int));
|
||||
void heading __P((int, u_long, char *, char *));
|
||||
void heading __P((int, u_long, const char *, const char *));
|
||||
void showgid __P((gid_t));
|
||||
void showgrpname __P((char *));
|
||||
void showquotas __P((int, u_long, char *));
|
||||
void showgrpname __P((const char *));
|
||||
void showquotas __P((int, u_long, const char *));
|
||||
void showuid __P((uid_t));
|
||||
void showusrname __P((char *));
|
||||
void showusrname __P((const char *));
|
||||
char *timeprt __P((time_t seconds));
|
||||
int ufshasquota __P((struct fstab *, int, char **));
|
||||
void usage __P((void));
|
||||
|
@ -204,7 +204,7 @@ showuid(uid)
|
|||
uid_t uid;
|
||||
{
|
||||
struct passwd *pwd = getpwuid(uid);
|
||||
char *name;
|
||||
const char *name;
|
||||
|
||||
if (pwd == NULL)
|
||||
name = "(no account)";
|
||||
|
@ -222,7 +222,7 @@ showuid(uid)
|
|||
*/
|
||||
void
|
||||
showusrname(name)
|
||||
char *name;
|
||||
const char *name;
|
||||
{
|
||||
struct passwd *pwd = getpwnam(name);
|
||||
|
||||
|
@ -248,7 +248,7 @@ showgid(gid)
|
|||
int ngroups;
|
||||
gid_t mygid, gidset[NGROUPS];
|
||||
int i;
|
||||
char *name;
|
||||
const char *name;
|
||||
|
||||
if (grp == NULL)
|
||||
name = "(no entry)";
|
||||
|
@ -277,7 +277,7 @@ showgid(gid)
|
|||
*/
|
||||
void
|
||||
showgrpname(name)
|
||||
char *name;
|
||||
const char *name;
|
||||
{
|
||||
struct group *grp = getgrnam(name);
|
||||
int ngroups;
|
||||
|
@ -311,7 +311,7 @@ void
|
|||
showquotas(type, id, name)
|
||||
int type;
|
||||
u_long id;
|
||||
char *name;
|
||||
const char *name;
|
||||
{
|
||||
struct quotause *qup;
|
||||
struct quotause *quplist;
|
||||
|
@ -396,7 +396,7 @@ void
|
|||
heading(type, id, name, tag)
|
||||
int type;
|
||||
u_long id;
|
||||
char *name, *tag;
|
||||
const char *name, *tag;
|
||||
{
|
||||
|
||||
printf("Disk quotas for %s %s (%cid %ld): %s\n", qfextension[type],
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rwall.c,v 1.8 1998/07/06 06:54:41 mrg Exp $ */
|
||||
/* $NetBSD: rwall.c,v 1.9 1998/07/26 22:19:52 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1993 Christopher G. Demetriou
|
||||
|
@ -44,7 +44,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988 Regents of the University of California.\n\
|
|||
#if 0
|
||||
static char sccsid[] = "from: @(#)wall.c 5.14 (Berkeley) 3/2/91";
|
||||
#else
|
||||
__RCSID("$NetBSD: rwall.c,v 1.8 1998/07/06 06:54:41 mrg Exp $");
|
||||
__RCSID("$NetBSD: rwall.c,v 1.9 1998/07/26 22:19:52 mycroft Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -128,7 +128,8 @@ makemsg(fname)
|
|||
time_t now;
|
||||
FILE *fp;
|
||||
int fd;
|
||||
char *whom, hostname[MAXHOSTNAMELEN + 1], lbuf[100], tmpname[32];
|
||||
const char *whom;
|
||||
char hostname[MAXHOSTNAMELEN + 1], lbuf[100], tmpname[32];
|
||||
|
||||
(void)strcpy(tmpname, _PATH_TMP);
|
||||
(void)strcat(tmpname, "/wall.XXXXXX");
|
||||
|
|
Loading…
Reference in New Issue