aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2000-08-13 04:46:54 +0000
committerKris Kennaway <kris@FreeBSD.org>2000-08-13 04:46:54 +0000
commit9c47a2dba1007fd197b62cd96f24ae587ca942d0 (patch)
tree49dcefada3336375083e94a4bf6ec098092fcad7
parent8e2795854ba0ed6abadf642f4a11768fabd2165a (diff)
downloadsrc-9c47a2dba1007fd197b62cd96f24ae587ca942d0.tar.gz
src-9c47a2dba1007fd197b62cd96f24ae587ca942d0.zip
Fix benign bugs due to missing format string in err() and warn().
Approved by: assar (vendor :-)
Notes
Notes: svn path=/vendor-crypto/kerberosIV/dist/; revision=64583
-rw-r--r--crypto/kerberosIV/appl/bsd/rshd.c2
-rw-r--r--crypto/kerberosIV/kuser/klist.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/kerberosIV/appl/bsd/rshd.c b/crypto/kerberosIV/appl/bsd/rshd.c
index ed91febc0952..b750e72f3247 100644
--- a/crypto/kerberosIV/appl/bsd/rshd.c
+++ b/crypto/kerberosIV/appl/bsd/rshd.c
@@ -596,7 +596,7 @@ doit(struct sockaddr_in *fromp)
krb_afslog(0, 0);
}
execle(pwd->pw_shell, cp, "-c", cmdbuf, 0, envinit);
- err(1, pwd->pw_shell);
+ err(1, "%s", pwd->pw_shell);
}
/*
diff --git a/crypto/kerberosIV/kuser/klist.c b/crypto/kerberosIV/kuser/klist.c
index 007c5f0a1451..e0476e0b6222 100644
--- a/crypto/kerberosIV/kuser/klist.c
+++ b/crypto/kerberosIV/kuser/klist.c
@@ -317,7 +317,7 @@ display_srvtab(char *file)
printf("%-15s %-15s %-15s %d\n",serv,inst,rlm,vno);
}
if (count < 0)
- warn(file);
+ warn("%s", file);
close(stab);
}