OSDN Git Service

* path.cc (struct symlink_info): Change size of contents member to
authorcorinna <corinna>
Wed, 10 Oct 2007 16:54:08 +0000 (16:54 +0000)
committercorinna <corinna>
Wed, 10 Oct 2007 16:54:08 +0000 (16:54 +0000)
commit70597e55a82635d3cf7eee675b1648b92dac4ac8
tree64a8237f91af2d40fef2e84c7bb7be01cb282364
parent301df5db3e49839a83ae65fa3f49a617f9a9ec9f
* path.cc (struct symlink_info): Change size of contents member to
be able to keep SYMLINK_MAX sized strings.
(symlink_worker): Rework for long path names.  When writing windows
shortcuts, store pathname additionally "hidden" after the actual
shortcut data to workaround size limitations of the description field.
(symlink_info::check_shortcut): Drop file name parameter.  Drop max
file size check.  Use NT functions.  Use appended full path if
available, description otherwise.  Check symlink string length for
not exceeding SYMLINK_MAX.  Don't close file here.
(symlink_info::check_sysfile): Drop file name parameter.  Use NT
functions.  Check symlink string length for not exceeding SYMLINK_MAX.
Don't close file here.
(symlink_info::check_reparse_point): Drop file name parameter.  Drop
useless length checks.  Allow SYMLINK_MAX length symlink strings.
Don't close file here.
(symlink_info::posixify): Allow SYMLINK_MAX length symlink strings.
(symlink_info::check): Turn around checking for symlink file attributes.
Use NT functions.  Close symlink file here.
* include/limits.h (PATH_MAX): Define as 32760.  Change comment.
(SYMLINK_MAX): Define as PATH_MAX - 1.
winsup/cygwin/ChangeLog
winsup/cygwin/include/limits.h
winsup/cygwin/path.cc