Searched refs:null_or_empty_path_with_root (Results 1 – 4 of 4) sorted by relevance
/systemd-251/src/test/ |
D | test-stat-util.c | 29 TEST(null_or_empty_path_with_root) { in TEST() argument 30 assert_se(null_or_empty_path_with_root("/dev/null", NULL) == 1); in TEST() 31 assert_se(null_or_empty_path_with_root("/dev/null", "/") == 1); in TEST() 32 assert_se(null_or_empty_path_with_root("/dev/null", "/.././../") == 1); in TEST() 33 assert_se(null_or_empty_path_with_root("/dev/null", "/.././..") == 1); in TEST() 34 …assert_se(null_or_empty_path_with_root("../../../../../../../../../../../../../../../../../../../.… in TEST() 35 …assert_se(null_or_empty_path_with_root("../../../../../../../../../../../../../../../../../../../.… in TEST() 36 assert_se(null_or_empty_path_with_root("/proc/self/exe", NULL) == 0); in TEST() 37 assert_se(null_or_empty_path_with_root("/proc/self/exe", "/") == 0); in TEST() 38 assert_se(null_or_empty_path_with_root("/nosuchfileordir", NULL) == -ENOENT); in TEST() [all …]
|
/systemd-251/src/basic/ |
D | stat-util.h | 26 int null_or_empty_path_with_root(const char *fn, const char *root); 30 return null_or_empty_path_with_root(fn, NULL); in null_or_empty_path()
|
D | stat-util.c | 142 int null_or_empty_path_with_root(const char *fn, const char *root) { in null_or_empty_path_with_root() function
|
/systemd-251/src/shared/ |
D | install.c | 1437 r = null_or_empty_path_with_root(info->symlink_target, lp->root_dir); in unit_file_load_or_readlink()
|