=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rsync/flist.c,v retrieving revision 1.19 retrieving revision 1.20 diff -c -r1.19 -r1.20 *** src/usr.bin/rsync/flist.c 2019/02/21 22:12:48 1.19 --- src/usr.bin/rsync/flist.c 2019/03/18 15:33:21 1.20 *************** *** 1,4 **** ! /* $Id: flist.c,v 1.19 2019/02/21 22:12:48 benno Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons * Copyright (c) 2019 Florian Obser --- 1,4 ---- ! /* $Id: flist.c,v 1.20 2019/03/18 15:33:21 deraadt Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons * Copyright (c) 2019 Florian Obser *************** *** 925,931 **** /* Our path defaults to "." for the root. */ ! if ('\0' == ent->fts_path[stripdir]) { if (asprintf(&f->path, "%s.", ent->fts_path) < 0) { ERR(sess, "asprintf"); f->path = NULL; --- 925,931 ---- /* Our path defaults to "." for the root. */ ! if (ent->fts_path[stripdir] == '\0') { if (asprintf(&f->path, "%s.", ent->fts_path) < 0) { ERR(sess, "asprintf"); f->path = NULL; *************** *** 1021,1027 **** } for (i = 0; i < argc; i++) { ! if ('\0' == argv[i][0]) continue; if (lstat(argv[i], &st) == -1) { ERR(sess, "%s: lstat", argv[i]); --- 1021,1027 ---- } for (i = 0; i < argc; i++) { ! if (argv[i][0] == '\0') continue; if (lstat(argv[i], &st) == -1) { ERR(sess, "%s: lstat", argv[i]);