This is sources Bugzilla
Bugzilla Version 2.17.5
Bugzilla Bug 2611
  bug/typo in stdio-common/renameat.c Last modified: 2006-04-27 14:31
     Query page      Enter new bug
Bug#: 2611   Hardware:   Reporter: Petr.Salinger@seznam.cz
Host: Target: Build:
Product:     Add CC:
Component:   Version:   CC:
Remove selected CCs
Status: RESOLVED   Priority:  
Resolution: FIXED   Severity:  
Assigned To: Ulrich Drepper <drepper@redhat.com>   Target Milestone:  
Flags: Requestee:
  backport ()
  examined ()
  testsuite ()
Summary:
Keywords:

Attachment Description Type Created Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 2611 depends on: Show dependency tree
Show dependency graph
Bug 2611 blocks:

Additional Comments:


Leave as RESOLVED FIXED
Reopen bug
Mark bug as VERIFIED

View Bug Activity   |   Format For Printing


Description:   Last confirmed: 0000-00-00 00:00 Opened: 2006-04-27 07:32
Hi,

there is a typo in stdio-common/renameat.c,
"&&" should be used instead of "&".

Petr


--- stdio-common/renameat.c~     2006-04-27 10:19:47.000000000 +0200
+++ stdio-common/renameat.c      2006-04-27 10:19:47.000000000 +0200
@@ -29,7 +29,7 @@
      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;

------- Additional Comment #1 From Ulrich Drepper 2006-04-27 14:31 -------
The file is not used at all but should nevertheless be correct.  Applied.

------- Additional Comment #2 From Thomas Schwinge 2006-04-27 21:50 -------
Subject: Re:  bug/typo in stdio-common/renameat.c

On Thu, Apr 27, 2006 at 02:31:05PM -0000, drepper at redhat dot com wrote:
> > [stdio-common/renameat.c]
>
> The file is not used at all but should nevertheless be correct.  Applied.

Eh?  Sure that file is being used.  Nevertheless, thanks for fixing this.

     Query page      Enter new bug
Actions: New | Query | bug # | Reports | Requests   New Account | Log In