Searched refs:slink_tmp (Results 1 – 1 of 1) sorted by relevance
/third_party/eudev/src/udev/ |
D | udev-node.c | 41 char slink_tmp[UTIL_PATH_SIZE + 32]; in node_symlink() local 103 … strscpyl(slink_tmp, sizeof(slink_tmp), slink, ".tmp-", udev_device_get_id_filename(dev), NULL); in node_symlink() 104 unlink(slink_tmp); in node_symlink() 106 err = mkdir_parents_label(slink_tmp, 0755); in node_symlink() 109 mac_selinux_create_file_prepare(slink_tmp, S_IFLNK); in node_symlink() 110 err = symlink(target, slink_tmp); in node_symlink() 116 log_error_errno(errno, "symlink '%s' '%s' failed: %m", target, slink_tmp); in node_symlink() 119 err = rename(slink_tmp, slink); in node_symlink() 121 log_error_errno(errno, "rename '%s' '%s' failed: %m", slink_tmp, slink); in node_symlink() 122 unlink(slink_tmp); in node_symlink()
|