Fix benign bugs due to missing format string in err() and warn().
Approved by: assar (vendor :-)
This commit is contained in:
parent
8e2795854b
commit
9c47a2dba1
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user