From 889825b6db150b3f0fc684fdb2ec8d95844f7437 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 16 Mar 2008 17:35:03 +0000 Subject: 2008-03-16 Samuel Thibault * idvec-verify.c (verify_id): Compare id to (uid_t) -1 instead of checking that is is positive or nul (which is always true). Reported by Marc-Olivier Mercier . --- libshouldbeinlibc/idvec-verify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libshouldbeinlibc/idvec-verify.c') diff --git a/libshouldbeinlibc/idvec-verify.c b/libshouldbeinlibc/idvec-verify.c index 55d20e2c..5527f308 100644 --- a/libshouldbeinlibc/idvec-verify.c +++ b/libshouldbeinlibc/idvec-verify.c @@ -258,7 +258,7 @@ verify_id (uid_t id, int is_group, int multiple, /* VERIFY_FN should have been defaulted in idvec_verify if necessary. */ assert (verify_fn); - if (id >= 0) + if (id != (uid_t) -1) do { if (is_group) -- cgit v1.2.3