This is the mail archive of the cygwin-developers mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Long paths in symlinks


Hi,

just FYI, the latest patch I just checked in allows to define symlinks
with path names up to 32759 characters.  The strange number is briefly
explained in include/limits.h at the point where PATH_MAX is defined.
PATH_MAX is now defined as 32760.  However, while symlinks can handle
long path names, and PATH_MAX reflects what NT is capable of, Cygwin is
still not capable of handling long pathnames in a general fashion.
Having said that,

- don't expect to be able a symlink with a long target string and
  actually being able to use it right now and

- don't compile applications relying on PATH_MAX against the latest
  snapshot and expect them to magically work with long paths.

Rather, when using long path names, expect Cygwin to show weird results.
Don't complain, send patches to extend long path name support instead.


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]