Lines Matching refs:dir
39 const char *dir;
70 if (faccessat(fd, table[i].dir, F_OK, AT_SYMLINK_NOFOLLOW) >= 0)
100 r = symlinkat(target, fd, table[i].dir);
102 return log_error_errno(errno, "Failed to create symlink at %s/%s: %m", root, table[i].dir);
105 if (fchownat(fd, table[i].dir, uid, gid, AT_SYMLINK_NOFOLLOW) < 0)
106 return log_error_errno(errno, "Failed to chown symlink at %s/%s: %m", root, table[i].dir);
113 r = mkdirat(fd, table[i].dir, table[i].mode);
116 "Failed to create directory at %s/%s: %m", root, table[i].dir);
123 if (fchownat(fd, table[i].dir, uid, gid, AT_SYMLINK_NOFOLLOW) < 0)
124 return log_error_errno(errno, "Failed to chown directory at %s/%s: %m", root, table[i].dir);