]> granicus.if.org Git - shadow/commitdiff
Reverse comparison for consistency.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Thu, 18 Mar 2010 18:58:52 +0000 (18:58 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Thu, 18 Mar 2010 18:58:52 +0000 (18:58 +0000)
lib/tcbfuncs.c

index d08c29d96fd2bc4f911ec6898b3a98bd19e8ddf7..2f694bd7467fd06fe93283fcac5b948a0c2658fe 100644 (file)
@@ -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));