copyattr: Fix error output

This commit is contained in:
Ingo Weinhold 2013-08-27 23:45:12 +02:00
parent be3833c9a4
commit 39d0e79f2b

View File

@ -408,7 +408,7 @@ copy_entry(const char *sourcePath, const char *destPath,
sizeof(linkTo) - 1); sizeof(linkTo) - 1);
if (bytesRead < 0) { if (bytesRead < 0) {
fprintf(stderr, "Error: Failed to read symlink \"%s\": %s\n", fprintf(stderr, "Error: Failed to read symlink \"%s\": %s\n",
sourcePath, strerror(error)); sourcePath, strerror(errno));
exit(1); exit(1);
} }