From: nekral-guest Date: Thu, 18 Mar 2010 18:58:52 +0000 (+0000) Subject: Reverse comparison for consistency. X-Git-Tag: 4.1.5~304 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=395914c16271d103b15c5d8609e3baac2c6d3b7e;p=shadow Reverse comparison for consistency. --- 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));