From: corinna Date: Wed, 15 Aug 2007 15:31:18 +0000 (+0000) Subject: * fhandler_disk_file.cc (fhandler_disk_file::link): Drop superfluous X-Git-Tag: EOL_registry_mounts~2907 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e9fe9e9a470be5df002a71a35a276edc456048b5;p=pf3gnuchains%2Fpf3gnuchains4x.git * fhandler_disk_file.cc (fhandler_disk_file::link): Drop superfluous test for trailing dot. * path.h (path_conv::operator []): Remove. --- diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 138debab35..8591d9bc53 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,11 @@ 2007-08-15 Corinna Vinschen + * fhandler_disk_file.cc (fhandler_disk_file::link): Drop superfluous + test for trailing dot. + * path.h (path_conv::operator []): Remove. + +2007-08-15 Corinna Vinschen + * fhandler_socket.cc (get_inet_addr): Use NT native functions for accessing the file representing the local socket. (fhandler_socket::bind): Ditto. diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc index 945d398fd2..049928c981 100644 --- a/winsup/cygwin/fhandler_disk_file.cc +++ b/winsup/cygwin/fhandler_disk_file.cc @@ -1066,13 +1066,6 @@ fhandler_disk_file::link (const char *newpath) return -1; } - if (newpc[strlen (newpc) - 1] == '.') - { - syscall_printf ("trailing dot, bailing out"); - set_errno (EINVAL); - return -1; - } - char new_buf[strlen (newpath) + 5]; if (!newpc.error && !newpc.case_clash) { diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h index 59734512f0..32634af827 100644 --- a/winsup/cygwin/path.h +++ b/winsup/cygwin/path.h @@ -256,7 +256,6 @@ class path_conv operator const char *() {return path;} operator DWORD &() {return fileattr;} operator int () {return fileattr; } - char operator [](int i) const {return path[i];} path_conv &operator =(path_conv &pc) { memcpy (this, &pc, pc.size ());