Lines Matching refs:slink_tmp
41 char slink_tmp[UTIL_PATH_SIZE + 32];
103 strscpyl(slink_tmp, sizeof(slink_tmp), slink, ".tmp-", udev_device_get_id_filename(dev), NULL);
104 unlink(slink_tmp);
106 err = mkdir_parents_label(slink_tmp, 0755);
109 mac_selinux_create_file_prepare(slink_tmp, S_IFLNK);
110 err = symlink(target, slink_tmp);
116 log_error_errno(errno, "symlink '%s' '%s' failed: %m", target, slink_tmp);
119 err = rename(slink_tmp, slink);
121 log_error_errno(errno, "rename '%s' '%s' failed: %m", slink_tmp, slink);
122 unlink(slink_tmp);