Home
last modified time | relevance | path

Searched refs:slink (Results 1 – 1 of 1) sorted by relevance

/systemd-251/src/udev/
Dudev-node.c44 static int create_symlink(const char *target, const char *slink) { in create_symlink() argument
48 assert(slink); in create_symlink()
51 r = mkdir_parents_label(slink, 0755); in create_symlink()
57 mac_selinux_create_file_prepare(slink, S_IFLNK); in create_symlink()
58 r = RET_NERRNO(symlink(target, slink)); in create_symlink()
67 static int node_symlink(sd_device *dev, const char *node, const char *slink) { in node_symlink() argument
75 assert(slink); in node_symlink()
77 if (lstat(slink, &stats) >= 0) { in node_symlink()
80 … "Conflicting inode '%s' found, link to '%s' will not be created.", slink, node); in node_symlink()
82 return log_device_debug_errno(dev, errno, "Failed to lstat() '%s': %m", slink); in node_symlink()
[all …]