mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-21 16:26:12 +08:00
* fhandler_disk_file.cc (fhandler_disk_file::link): Drop superfluous
test for trailing dot. * path.h (path_conv::operator []): Remove.
This commit is contained in:
parent
d85bcb4542
commit
6d70255fe8
@ -1,3 +1,9 @@
|
|||||||
|
2007-08-15 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* 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 <corinna@vinschen.de>
|
2007-08-15 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* fhandler_socket.cc (get_inet_addr): Use NT native functions for
|
* fhandler_socket.cc (get_inet_addr): Use NT native functions for
|
||||||
|
@ -1066,13 +1066,6 @@ fhandler_disk_file::link (const char *newpath)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newpc[strlen (newpc) - 1] == '.')
|
|
||||||
{
|
|
||||||
syscall_printf ("trailing dot, bailing out");
|
|
||||||
set_errno (EINVAL);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
char new_buf[strlen (newpath) + 5];
|
char new_buf[strlen (newpath) + 5];
|
||||||
if (!newpc.error && !newpc.case_clash)
|
if (!newpc.error && !newpc.case_clash)
|
||||||
{
|
{
|
||||||
|
@ -256,7 +256,6 @@ class path_conv
|
|||||||
operator const char *() {return path;}
|
operator const char *() {return path;}
|
||||||
operator DWORD &() {return fileattr;}
|
operator DWORD &() {return fileattr;}
|
||||||
operator int () {return fileattr; }
|
operator int () {return fileattr; }
|
||||||
char operator [](int i) const {return path[i];}
|
|
||||||
path_conv &operator =(path_conv &pc)
|
path_conv &operator =(path_conv &pc)
|
||||||
{
|
{
|
||||||
memcpy (this, &pc, pc.size ());
|
memcpy (this, &pc, pc.size ());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user