Why does Cygwin always use absolute paths instead of OBJECT_ATTRIBUTES.RootDirectory?

Dan Shelton dan.f.shelton@gmail.com
Wed Feb 4 21:17:00 GMT 2026


Hello,

Why does Cygwin always use absolute paths instead of
OBJECT_ATTRIBUTES.RootDirectory in NtOpenFile(),
NtSetInformationFile() for rename and hardlinks

This slows down Cygwin path lookups a lot, and with lots of path
elements each lookup with a relative RootDirectory might be a lot
faster, e.g. for openat(), linkat(), renameat().

Dan
-- 
Dan Shelton - Cluster Specialist Win/Lin/Bsd


More information about the Cygwin mailing list