about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-04-27 14:32:13 +0000
committerUlrich Drepper <drepper@redhat.com>2006-04-27 14:32:13 +0000
commitb9af3620d4e0339bcd655dac9b714e5858a5d6e6 (patch)
tree98daf22503d1e9e34f0ecd4c134c68c6f855f038
parent15627a21c69c42c8e2fb6b7f049191a744f682cd (diff)
downloadglibc-b9af3620d4e0339bcd655dac9b714e5858a5d6e6.tar.gz
glibc-b9af3620d4e0339bcd655dac9b714e5858a5d6e6.tar.xz
glibc-b9af3620d4e0339bcd655dac9b714e5858a5d6e6.zip
[BZ #2611]
2006-04-27  Ulrich Drepper  <drepper@redhat.com>
	[BZ #2611]
	* stdio-common/renameat.c (renameat): Fix typo.
-rw-r--r--ChangeLog5
-rw-r--r--stdio-common/renameat.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index f57e6c657b..dc445c53c6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-04-27  Ulrich Drepper  <drepper@redhat.com>
+
+	[BZ #2611]
+	* stdio-common/renameat.c (renameat): Fix typo.
+
 2006-04-26  Roland McGrath  <roland@redhat.com>
 
 	* Makeconfig (%.v.i rule): Don't use -DASSEMBLER.
diff --git a/stdio-common/renameat.c b/stdio-common/renameat.c
index e09c5933ed..1261da88a4 100644
--- a/stdio-common/renameat.c
+++ b/stdio-common/renameat.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005 Free Software Foundation, Inc.
+/* Copyright (C) 2005, 2006 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
@@ -29,7 +29,7 @@ renameat (oldfd, old, newfd, new)
      int newfd;
      const char *new;
 {
-  if ((oldfd < 0 & oldfd != AT_FDCWD) || (newfd < 0 && newfd != AT_FDCWD))
+  if ((oldfd < 0 && oldfd != AT_FDCWD) || (newfd < 0 && newfd != AT_FDCWD))
     {
       __set_errno (EBADF);
       return -1;