public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nptl/17058] New: trunk/nptl/tst-setuid2.c:138: possible bad if test ?
@ 2014-06-16  7:14 dcb314 at hotmail dot com
  2014-06-16 16:03 ` [Bug nptl/17058] " cvs-commit at gcc dot gnu.org
  2014-06-16 16:03 ` fweimer at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: dcb314 at hotmail dot com @ 2014-06-16  7:14 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=17058

            Bug ID: 17058
           Summary: trunk/nptl/tst-setuid2.c:138: possible bad if test ?
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: nptl
          Assignee: unassigned at sourceware dot org
          Reporter: dcb314 at hotmail dot com
                CC: drepper.fsp at gmail dot com

[trunk/nptl/tst-setuid2.c:138]: (warning) Logical disjunction always evaluates
to true: euid != 1002 || euid != 1003.

Source code is

  if (ruid != 1001 || euid != 1002 || euid != 1003)
    FAIL ("unexpected UIDs after setuid: %ld, %ld, %ld",
      (long) ruid, (long) euid, (long) suid);

Maybe better code might be

  if (ruid != 1001 || euid != 1002 || suid != 1003)
    FAIL ("unexpected UIDs after setuid: %ld, %ld, %ld",
      (long) ruid, (long) euid, (long) suid);

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-06-16 16:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-16  7:14 [Bug nptl/17058] New: trunk/nptl/tst-setuid2.c:138: possible bad if test ? dcb314 at hotmail dot com
2014-06-16 16:03 ` [Bug nptl/17058] " cvs-commit at gcc dot gnu.org
2014-06-16 16:03 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).