[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commits] r9172 - in /fsf/trunk/ports: ChangeLog.m68k sysdeps/unix/sysv/linux/m68k/fchownat.c
- To: commits@xxxxxxxxxx
- Subject: [commits] r9172 - in /fsf/trunk/ports: ChangeLog.m68k sysdeps/unix/sysv/linux/m68k/fchownat.c
- From: eglibc@xxxxxxxxxx
- Date: Sat, 31 Oct 2009 07:04:05 -0000
Author: eglibc
Date: Sat Oct 31 00:04:05 2009
New Revision: 9172
Log:
Import glibc-ports-mainline for 2009-10-31
Modified:
fsf/trunk/ports/ChangeLog.m68k
fsf/trunk/ports/sysdeps/unix/sysv/linux/m68k/fchownat.c
Modified: fsf/trunk/ports/ChangeLog.m68k
==============================================================================
--- fsf/trunk/ports/ChangeLog.m68k (original)
+++ fsf/trunk/ports/ChangeLog.m68k Sat Oct 31 00:04:05 2009
@@ -1,3 +1,9 @@
+2009-10-30 Joseph Myers <joseph@xxxxxxxxxxxxxxxx>
+
+ [BZ #10609]
+ * sysdeps/unix/sysv/linux/m68k/fchownat.c (fchownat): Fix handling
+ of empty parameters for file names.
+
2009-09-06 Andreas Schwab <schwab@xxxxxxxxxxxxxx>
* sysdeps/unix/sysv/linux/m68k/____longjmp_chk.c: New file.
Modified: fsf/trunk/ports/sysdeps/unix/sysv/linux/m68k/fchownat.c
==============================================================================
--- fsf/trunk/ports/sysdeps/unix/sysv/linux/m68k/fchownat.c (original)
+++ fsf/trunk/ports/sysdeps/unix/sysv/linux/m68k/fchownat.c Sat Oct 31 00:04:05 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
@@ -51,6 +51,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/