aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2013-08-26 15:11:47 -0700
committerRoland McGrath <roland@hack.frob.com>2013-08-26 15:11:47 -0700
commit53234cc3a368c1b61be017d87b71cfe2affbba68 (patch)
tree262a15c6f9a51339bbd350da539ca73f242020d5
parent59d112a4c7b6bd3ab220abbb68d8127f316a109c (diff)
downloadglibc-53234cc3a368c1b61be017d87b71cfe2affbba68.tar
glibc-53234cc3a368c1b61be017d87b71cfe2affbba68.tar.gz
glibc-53234cc3a368c1b61be017d87b71cfe2affbba68.tar.bz2
glibc-53234cc3a368c1b61be017d87b71cfe2affbba68.zip
Make stub lxstat64 call xstat64, like stub lxstat calls xstat.
-rw-r--r--ChangeLog2
-rw-r--r--io/lxstat64.c13
2 files changed, 5 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index 2000233eb7..ed8d7fef26 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2013-08-26 Roland McGrath <roland@hack.frob.com>
+ * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
+
* nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
instead of explicitly declaring xdecrypt.
* nis/nss_nis/nis-publickey.c: Likewise.
diff --git a/io/lxstat64.c b/io/lxstat64.c
index f64b84b477..2d5049b004 100644
--- a/io/lxstat64.c
+++ b/io/lxstat64.c
@@ -1,4 +1,5 @@
-/* Copyright (C) 1991-2013 Free Software Foundation, Inc.
+/* lxstat64 -- get file metadata, not following symlinks. Stub version.
+ Copyright (C) 1991-2013 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -24,14 +25,6 @@
int
__lxstat64 (int vers, const char *file, struct stat64 *buf)
{
- if (vers != _STAT_VER || file == NULL || buf == NULL)
- {
- __set_errno (EINVAL);
- return -1;
- }
-
- __set_errno (ENOSYS);
- return -1;
+ return __xstat64 (vers, file, buf);
}
hidden_def (__lxstat64)
-stub_warning (__lxstat64)