[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commits] r9220 - in /fsf/trunk/ports: ChangeLog.alpha sysdeps/unix/sysv/linux/alpha/fxstatat.c
- To: commits@xxxxxxxxxx
- Subject: [commits] r9220 - in /fsf/trunk/ports: ChangeLog.alpha sysdeps/unix/sysv/linux/alpha/fxstatat.c
- From: eglibc@xxxxxxxxxx
- Date: Wed, 11 Nov 2009 01:21:41 -0000
Author: eglibc
Date: Tue Nov 10 17:21:41 2009
New Revision: 9220
Log:
Import glibc-ports-mainline for 2009-11-10
Modified:
fsf/trunk/ports/ChangeLog.alpha
fsf/trunk/ports/sysdeps/unix/sysv/linux/alpha/fxstatat.c
Modified: fsf/trunk/ports/ChangeLog.alpha
==============================================================================
--- fsf/trunk/ports/ChangeLog.alpha (original)
+++ fsf/trunk/ports/ChangeLog.alpha Tue Nov 10 17:21:41 2009
@@ -1,3 +1,9 @@
+2009-11-10 Matt Turner <mattst88@xxxxxxxxx>
+
+ [BZ #10609]
+ * sysdeps/unix/sysv/linux/alpha/fxstatat.c (__fxstatat): Fix handling
+ of empty parameters for file names.
+
2009-07-13 Aurelien Jarno <aurelien@xxxxxxxxxxx>
[BZ #10158]
Modified: fsf/trunk/ports/sysdeps/unix/sysv/linux/alpha/fxstatat.c
==============================================================================
--- fsf/trunk/ports/sysdeps/unix/sysv/linux/alpha/fxstatat.c (original)
+++ fsf/trunk/ports/sysdeps/unix/sysv/linux/alpha/fxstatat.c Tue Nov 10 17:21:41 2009
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005, 2006 Free Software Foundation, Inc.
+/* Copyright (C) 2005, 2006, 2009 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
@@ -46,6 +46,12 @@
if (fd != AT_FDCWD && file[0] != '/')
{
size_t filelen = strlen (file);
+ if (__builtin_expect (filelen == 0, 0))
+ {
+ __set_errno (ENOENT);
+ return -1;
+ }
+
static const char procfd[] = "/proc/self/fd/%d/%s";
/* Buffer for the path name we are going to use. It consists of
- the string /proc/self/fd/