Lines Matching defs:dir
153 const char *prev_path, *dir = NULL, *p;
166 if (t_get_working_dir(&dir, &error) < 0) {
170 str_printfa(errmsg, " in directory %s", dir);
171 path = t_strconcat(dir, "/", path, NULL);
209 dir = t_strdup_until(prev_path, p);
210 ret = stat(dir, &st);
213 if (errno == EACCES && strcmp(dir, "/") != 0) {
216 strcmp(dir, "/") != 0) {
221 str_printfa(errmsg, " stat(%s) failed: %m", dir);
224 prev_path = dir;
228 /* dir is the first parent directory we can stat() */
229 if (test_access(dir, X_OK, errmsg) < 0) {
232 } else if (creating && test_access(dir, W_OK, errmsg) < 0) {
253 str_printfa(errmsg, ", conflicting dir uid=%s(%s)",
256 str_printfa(errmsg, ", dir owned by %s:%s mode=0%o",
262 str_append(errmsg, ", dir owner missing perms");
267 str_printfa(errmsg, ", conflicting dir gid=%s(%s)",