diff options
author | Pierre Humblet <phumblet@phumblet.no-ip.org> | 2004-04-14 03:08:00 +0000 |
---|---|---|
committer | Pierre Humblet <phumblet@phumblet.no-ip.org> | 2004-04-14 03:08:00 +0000 |
commit | b923181eca48edeffb5f1bdaa9f7d424be9bfe68 (patch) | |
tree | 4f05162afd97012967d5a1f45def426efa04e562 /winsup/cygwin/path.cc | |
parent | 3614afe6a0a9d6fac724a146fa319fa76da97570 (diff) | |
download | cygnal-b923181eca48edeffb5f1bdaa9f7d424be9bfe68.tar.gz cygnal-b923181eca48edeffb5f1bdaa9f7d424be9bfe68.tar.bz2 cygnal-b923181eca48edeffb5f1bdaa9f7d424be9bfe68.zip |
2004-04-14 Pierre Humblet <pierre.humblet@ieee.org>
* path.h (path_conv::set_symlink): Add argument.
(path_conv::get_symlink_length): New method.
(path_conv::symlink_length): New member.
* path.cc (path_conv::check): Pass symlen to set_symlink.
* fhandler_disk_file.cc (fhandler_base::fstat_helper): For symlinks
set st_size from get_symlink_length.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r-- | winsup/cygwin/path.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 08e019915..1b4000fe7 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -705,7 +705,7 @@ path_conv::check (const char *src, unsigned opt, saw_symlinks = 1; if (component == 0 && !need_directory && !(opt & PC_SYM_FOLLOW)) { - set_symlink (); // last component of path is a symlink. + set_symlink (symlen); // last component of path is a symlink. if (opt & PC_SYM_CONTENTS) { strcpy (path, sym.contents); |