mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-02 19:22:47 +00:00
parent
2ff5c01e98
commit
83ac6cdcee
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=54167
@ -372,7 +372,7 @@ again:
|
||||
ysd->dom_client = NULL;
|
||||
ysd->dom_socket = -1;
|
||||
}
|
||||
sprintf(path, "%s/%s.%d", BINDINGDIR, dom, 2);
|
||||
snprintf(path, sizeof(path), "%s/%s.%d", BINDINGDIR, dom, 2);
|
||||
if( (fd=open(path, O_RDONLY)) == -1) {
|
||||
/* no binding file, YP is dead. */
|
||||
/* Try to bring it back to life. */
|
||||
@ -503,7 +503,7 @@ skipit:
|
||||
*(u_short *)&ypbr.ypbind_resp_u.ypbind_bindinfo.ypbind_binding_port;
|
||||
gotit:
|
||||
ysd->dom_vers = YPVERS;
|
||||
strcpy(ysd->dom_domain, dom);
|
||||
strlcpy(ysd->dom_domain, dom, sizeof(ysd->dom_domain));
|
||||
}
|
||||
|
||||
/* Don't rebuild the connection to the server unless we have to. */
|
||||
|
Loading…
Reference in New Issue
Block a user