This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/17058] New: trunk/nptl/tst-setuid2.c:138: possible bad if test ?
- From: "dcb314 at hotmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 16 Jun 2014 07:14:05 +0000
- Subject: [Bug nptl/17058] New: trunk/nptl/tst-setuid2.c:138: possible bad if test ?
- Auto-submitted: auto-generated
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.