mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-21 18:27:22 +00:00
cp: Use warnc().
MFC after: 1 week Sponsored by: Klara, Inc.
This commit is contained in:
parent
000a533e6d
commit
f070188c3a
|
@ -287,8 +287,7 @@ copy(char *argv[], enum op type, int fts_options, struct stat *root_stat)
|
||||||
case FTS_NS:
|
case FTS_NS:
|
||||||
case FTS_DNR:
|
case FTS_DNR:
|
||||||
case FTS_ERR:
|
case FTS_ERR:
|
||||||
warnx("%s: %s",
|
warnc(curr->fts_errno, "%s", curr->fts_path);
|
||||||
curr->fts_path, strerror(curr->fts_errno));
|
|
||||||
badcp = rval = 1;
|
badcp = rval = 1;
|
||||||
continue;
|
continue;
|
||||||
case FTS_DC: /* Warn, continue. */
|
case FTS_DC: /* Warn, continue. */
|
||||||
|
|
Loading…
Reference in a new issue