Home
last modified time | relevance | path

Searched refs:null_or_empty_path_with_root (Results 1 – 4 of 4) sorted by relevance

/systemd-251/src/test/
Dtest-stat-util.c29 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/
Dstat-util.h26 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()
Dstat-util.c142 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/
Dinstall.c1437 r = null_or_empty_path_with_root(info->symlink_target, lp->root_dir); in unit_file_load_or_readlink()