=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rsync/flist.c,v retrieving revision 1.28 retrieving revision 1.29 diff -u -r1.28 -r1.29 --- src/usr.bin/rsync/flist.c 2019/06/23 10:28:32 1.28 +++ src/usr.bin/rsync/flist.c 2019/06/27 18:03:37 1.29 @@ -1,4 +1,4 @@ -/* $Id: flist.c,v 1.28 2019/06/23 10:28:32 benno Exp $ */ +/* $Id: flist.c,v 1.29 2019/06/27 18:03:37 deraadt Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons * Copyright (c) 2019 Florian Obser @@ -962,7 +962,7 @@ /* Our path defaults to "." for the root. */ if (ent->fts_path[stripdir] == '\0') { - if (asprintf(&f->path, "%s.", ent->fts_path) < 0) { + if (asprintf(&f->path, "%s.", ent->fts_path) == -1) { ERR("asprintf"); f->path = NULL; goto out; @@ -1213,7 +1213,7 @@ if (wflsz && strcmp(wfl[0].wpath, ".") == 0) { assert(cargvs == 1); assert(S_ISDIR(wfl[0].st.mode)); - if (asprintf(&cargv[0], "%s/", root) < 0) { + if (asprintf(&cargv[0], "%s/", root) == -1) { ERR("asprintf"); cargv[0] = NULL; goto out; @@ -1226,7 +1226,7 @@ assert(S_ISDIR(wfl[i].st.mode)); assert(strcmp(wfl[i].wpath, ".")); c = asprintf(&cargv[j], "%s/%s", root, wfl[i].wpath); - if (c < 0) { + if (c == -1) { ERR("asprintf"); cargv[j] = NULL; goto out;