From 395914c16271d103b15c5d8609e3baac2c6d3b7e Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Thu, 18 Mar 2010 18:58:52 +0000 Subject: [PATCH] Reverse comparison for consistency. --- lib/tcbfuncs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tcbfuncs.c b/lib/tcbfuncs.c index d08c29d9..2f694bd7 100644 --- a/lib/tcbfuncs.c +++ b/lib/tcbfuncs.c @@ -139,7 +139,7 @@ static /*@null@*/ char *shadowtcb_path_rel_existing (const char *name) return NULL; } ret = readlink (path, link, sizeof (link) - 1); - if (ret == -1) { + if (-1 == ret) { fprintf (stderr, _("%s: Cannot read symbolic link %s: %s\n"), Prog, path, strerror (errno));