Searched refs:pathcopy (Results 1 - 1 of 1) sorted by relevance

/freebsd-13-stable/usr.sbin/bhyve/
H A Dpci_virtio_console.c281 char *pathcopy; local
299 pathcopy = strdup(path);
300 if (pathcopy == NULL) {
305 fd = open(dirname(pathcopy), O_RDONLY | O_DIRECTORY);
307 free(pathcopy);
314 strcpy(pathcopy, path);
315 strlcpy(sun.sun_path, basename(pathcopy), sizeof(sun.sun_path));
316 free(pathcopy);

Completed in 104 milliseconds