2003-02-28 Pierre Humblet <pierre.humblet@ieee.org>
* syscalls.cc (fstat64): Pass get_name () to pc. (access): Pass fn to stat_worker.
This commit is contained in:
parent
ff0592df9e
commit
27b4082ae7
|
@ -1,4 +1,9 @@
|
||||||
2003-03-27 Corinna Vinschen <corinna@vinschen.de>
|
2003-02-28 Pierre Humblet <pierre.humblet@ieee.org>
|
||||||
|
|
||||||
|
* syscalls.cc (fstat64): Pass get_name () to pc.
|
||||||
|
(access): Pass fn to stat_worker.
|
||||||
|
|
||||||
|
2003-03-27 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* fhandler_socket.cc (class sock_event): New class managing Winsock
|
* fhandler_socket.cc (class sock_event): New class managing Winsock
|
||||||
events for interruptible socket calls.
|
events for interruptible socket calls.
|
||||||
|
|
|
@ -1013,7 +1013,7 @@ fstat64 (int fd, struct __stat64 *buf)
|
||||||
res = -1;
|
res = -1;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
path_conv pc (cfd->get_win32_name (), PC_SYM_NOFOLLOW);
|
path_conv pc (cfd->get_name (), PC_SYM_NOFOLLOW);
|
||||||
memset (buf, 0, sizeof (struct __stat64));
|
memset (buf, 0, sizeof (struct __stat64));
|
||||||
res = cfd->fstat (buf, &pc);
|
res = cfd->fstat (buf, &pc);
|
||||||
if (!res && cfd->get_device () != FH_SOCKET)
|
if (!res && cfd->get_device () != FH_SOCKET)
|
||||||
|
@ -1200,7 +1200,7 @@ access (const char *fn, int flags)
|
||||||
return check_file_access (real_path, flags);
|
return check_file_access (real_path, flags);
|
||||||
|
|
||||||
struct __stat64 st;
|
struct __stat64 st;
|
||||||
int r = stat_worker (real_path, &st, 0);
|
int r = stat_worker (fn, &st, 0);
|
||||||
if (r)
|
if (r)
|
||||||
return -1;
|
return -1;
|
||||||
r = -1;
|
r = -1;
|
||||||
|
|
Loading…
Reference in New Issue