From 39d0e79f2be67f6da2843db3695257a7a93fd7d7 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Tue, 27 Aug 2013 23:45:12 +0200 Subject: [PATCH] copyattr: Fix error output --- src/bin/copyattr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/copyattr.cpp b/src/bin/copyattr.cpp index f1c9ac8378..fa36fbd059 100644 --- a/src/bin/copyattr.cpp +++ b/src/bin/copyattr.cpp @@ -408,7 +408,7 @@ copy_entry(const char *sourcePath, const char *destPath, sizeof(linkTo) - 1); if (bytesRead < 0) { fprintf(stderr, "Error: Failed to read symlink \"%s\": %s\n", - sourcePath, strerror(error)); + sourcePath, strerror(errno)); exit(1); }