Lines Matching defs:dir_path
41 static char *dir_path;
52 dir_path = mkdtemp(talloc_asprintf(test_ctx, "%s/%s", TESTS_PATH, tpl_dir));
65 if (dir_path && test_ctx) {
66 cmd = talloc_asprintf(test_ctx, "/bin/rm -rf %s\n", dir_path);
69 DEBUG(SSSDBG_CRIT_FAILURE, "Removing [%s] failed.\n", dir_path);
115 DEBUG(SSSDBG_FUNC_DATA, "About to delete %s\n", dir_path);
118 ret = chdir(dir_path);
146 ret = sss_remove_tree(dir_path);
150 ret = access(dir_path, F_OK);
164 DEBUG(SSSDBG_FUNC_DATA, "About to delete %s\n", dir_path);
167 ret = chdir(dir_path);
195 ret = sss_remove_subtree(dir_path);
199 ret = access(dir_path, F_OK);
202 ret = rmdir(dir_path);
219 ret = chdir(dir_path);
241 "Will copy from '%s' to '%s'\n", dir_path, dst_path);
242 ret = sss_copy_tree(dir_path, dst_path, 0700, uid, gid);
271 ret = chdir(dir_path);
276 foo_path = talloc_asprintf(tmp_ctx, "%s/foo", dir_path);
312 ret = chdir(dir_path);
327 "Will copy from '%s' to '%s'\n", dir_path, dst_path);
328 ret = sss_copy_tree(dir_path, dst_path, 0700, uid, gid);
354 ret = chdir(dir_path);
366 "Will copy from '%s' to '%s'\n", dir_path, dst_path);
367 ret = sss_copy_tree(dir_path, dst_path, 0700, uid, gid);
394 ret = sss_create_dir(dir_path, "testdir", S_IRUSR | S_IXUSR, uid, gid);
397 new_dir = talloc_asprintf(NULL, "%s/testdir", dir_path);