MCPcopy Create free account
hub / github.com/coreutils/coreutils / is_root

Function is_root

src/chroot.c:169–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167 could be bind mounted to a separate location. */
168
169static bool
170is_root (char const *dir)
171{
172 char *resolved = canonicalize_file_name (dir);
173 bool is_res_root = resolved && streq ("/", resolved);
174 free (resolved);
175 return is_res_root;
176}
177
178void
179usage (int status)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected