Searched refs:pathcopy (Results 1 – 1 of 1) sorted by relevance
276 char *cp, *pathcopy; in pci_vtcon_sock_add() local309 pathcopy = strdup(path); in pci_vtcon_sock_add()310 if (pathcopy == NULL) { in pci_vtcon_sock_add()315 fd = open(dirname(pathcopy), O_RDONLY | O_DIRECTORY); in pci_vtcon_sock_add()317 free(pathcopy); in pci_vtcon_sock_add()324 strcpy(pathcopy, path); in pci_vtcon_sock_add()325 strlcpy(sun.sun_path, basename(pathcopy), sizeof(sun.sun_path)); in pci_vtcon_sock_add()326 free(pathcopy); in pci_vtcon_sock_add()