This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch roland/stub-lxstat64 created. glibc-2.17-933-gaeb55b4
- From: roland at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 1 Aug 2013 21:22:07 -0000
- Subject: GNU C Library master sources branch roland/stub-lxstat64 created. glibc-2.17-933-gaeb55b4
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, roland/stub-lxstat64 has been created
at aeb55b412fec2aac26892ef3dc5e646631fa94e3 (commit)
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=aeb55b412fec2aac26892ef3dc5e646631fa94e3
commit aeb55b412fec2aac26892ef3dc5e646631fa94e3
Author: Roland McGrath <roland@hack.frob.com>
Date: Thu Aug 1 14:21:50 2013 -0700
Make stub lxstat64 call xstat64, like stub lxstat calls xstat.
diff --git a/ChangeLog b/ChangeLog
index 6aecb1b..78c4ba6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-08-01 Roland McGrath <roland@hack.frob.com>
+
+ * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
+
2013-07-30 David S. Miller <davem@davemloft.net>
* po/fr.po: Update French translation from translation project.
diff --git a/io/lxstat64.c b/io/lxstat64.c
index f64b84b..2d5049b 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)
-----------------------------------------------------------------------
hooks/post-receive
--
GNU C Library master sources