Searched refs:npath (Results 1 - 2 of 2) sorted by relevance
/dovecot/src/lib/ |
H A D | test-path-util.c | 25 const char *npath = NULL, *error = NULL; local 26 test_assert(t_normpath_to("README.md", cwd, &npath, &error) == 0); 27 test_assert_strcmp(npath, expected); 32 const char *npath = NULL, *error = NULL; local 33 test_assert(t_normpath_to("/", "/", &npath, &error) == 0); 34 test_assert_strcmp(npath, "/"); 36 test_assert(t_normpath_to(cwd, cwd, &npath, &error) == 0); 37 test_assert_strcmp(npath, cwd); 51 const char *npath = cwd; local 52 for (npath 61 const char *npath = NULL, *error = NULL; local 74 const char *npath = NULL, *error = NULL; local 85 const char *npath = NULL, *error = NULL; local 101 const char *old_dir, *npath = NULL, *error = NULL; local 123 const char *npath = NULL, *error = NULL; local 132 const char *npath = NULL, *error = NULL; local [all...] |
H A D | path-util.c | 41 char *npath, *npath_pos; local 50 /* relative; initialize npath with current directory */ 51 if (t_getcwd_noalloc(&npath, &asize, error_r) < 0) 53 npath_pos = npath + strlen(npath); 54 i_assert(npath[0] == '/'); 56 /* absolute; initialize npath with root */ 58 npath = t_buffer_get(asize); 59 npath[0] = '/'; 60 npath_pos = npath [all...] |
Completed in 8 milliseconds