aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2018-04-04 17:07:08 +0200
committerDuncaen <mail@duncano.de>2018-04-04 17:32:09 +0200
commite502ff0c7b11a4b9ba702eabac24431b959e8d3e (patch)
treeab70054dc5f90a09169f5ff4db9e2d124a6545f4
parent7dd2a2852f4b73d267a8a4b52da8f00271d15b86 (diff)
downloadlobase-e502ff0c7b11a4b9ba702eabac24431b959e8d3e.tar.gz
usr.bin/find: update to OPENBSD_6_3
-rw-r--r--usr.bin/find/misc.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/usr.bin/find/misc.c b/usr.bin/find/misc.c
index c4f358c..69a4434 100644
--- a/usr.bin/find/misc.c
+++ b/usr.bin/find/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.15 2015/07/14 17:18:48 millert Exp $ */
+/* $OpenBSD: misc.c,v 1.16 2017/12/08 17:04:15 deraadt Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -148,16 +148,10 @@ show_path(int signo)
{
int save_errno = errno;
extern FTSENT *entry;
- struct iovec iov[3];
if (entry != NULL) {
- iov[0].iov_base = "find path: ";
- iov[0].iov_len = strlen(iov[0].iov_base);
- iov[1].iov_base = entry->fts_path;
- iov[1].iov_len = entry->fts_pathlen;
- iov[2].iov_base = "\n";
- iov[2].iov_len = strlen(iov[2].iov_base);
- writev(STDERR_FILENO, iov, 3);
+ dprintf(STDERR_FILENO, "find path: %*s\n",
+ entry->fts_pathlen, entry->fts_path);
errno = save_errno;
}
}