MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / isSymLink

Method isSymLink

src/common/os/posix/path_utils.cpp:239–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239bool PathUtils::isSymLink(const PathName& path)
240{
241 struct STAT st, lst;
242
243 if (os_utils::stat(path.c_str(), &st) != 0)
244 return false;
245
246 if (os_utils::lstat(path.c_str(), &lst) != 0)
247 return false;
248
249 return st.st_ino != lst.st_ino;
250}
251
252bool PathUtils::canAccess(const PathName& path, int mode)
253{

Callers

nothing calls this directly

Calls 3

statClass · 0.70
lstatFunction · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected