From: Jim Meyering Date: Fri, 4 Feb 2011 14:01:39 +0000 (+0100) Subject: cp: avoid spurious failure on any non-linux kernel X-Git-Tag: v8.10~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5fa424a9c25db98619c47007f548aaef6155fce;p=thirdparty%2Fcoreutils.git cp: avoid spurious failure on any non-linux kernel * src/extent-scan.c (extent_scan_read) [!linux]: Always set scan->initial_scan_failed so caller knows not to report the failure. --- diff --git a/src/extent-scan.c b/src/extent-scan.c index 9f38877261..1ba59dbfd0 100644 --- a/src/extent-scan.c +++ b/src/extent-scan.c @@ -110,6 +110,7 @@ extent_scan_read (struct extent_scan *scan) extern bool extent_scan_read (struct extent_scan *scan ATTRIBUTE_UNUSED) { + scan->initial_scan_failed = true; errno = ENOTSUP; return false; }