mirror of
git://sourceware.org/git/glibc.git
synced 2025-02-17 13:00:43 +08:00
Update.
* io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
This commit is contained in:
parent
9af652f608
commit
faf4c7f081
@ -1,5 +1,7 @@
|
|||||||
2001-08-19 Ulrich Drepper <drepper@redhat.com>
|
2001-08-19 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
|
||||||
|
|
||||||
* sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
|
* sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
|
||||||
* sunrpc/xdr_rec.c: Likewise.
|
* sunrpc/xdr_rec.c: Likewise.
|
||||||
* sunrpc/xdr_mem.c: Likewise.
|
* sunrpc/xdr_mem.c: Likewise.
|
||||||
|
4
io/fts.c
4
io/fts.c
@ -1091,14 +1091,14 @@ fts_safe_changedir(sp, p, fd, path)
|
|||||||
const char *path;
|
const char *path;
|
||||||
{
|
{
|
||||||
int ret, oerrno, newfd;
|
int ret, oerrno, newfd;
|
||||||
struct stat sb;
|
struct stat64 sb;
|
||||||
|
|
||||||
newfd = fd;
|
newfd = fd;
|
||||||
if (ISSET(FTS_NOCHDIR))
|
if (ISSET(FTS_NOCHDIR))
|
||||||
return (0);
|
return (0);
|
||||||
if (fd < 0 && (newfd = __open(path, O_RDONLY, 0)) < 0)
|
if (fd < 0 && (newfd = __open(path, O_RDONLY, 0)) < 0)
|
||||||
return (-1);
|
return (-1);
|
||||||
if (__fstat(newfd, &sb)) {
|
if (__fxstat64(_STAT_VER, newfd, &sb)) {
|
||||||
ret = -1;
|
ret = -1;
|
||||||
goto bail;
|
goto bail;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user