cp: avoid spurious failure on any non-linux kernel
authorJim Meyering <meyering@redhat.com>
Fri, 4 Feb 2011 14:01:39 +0000 (15:01 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 4 Feb 2011 14:01:39 +0000 (15:01 +0100)
* src/extent-scan.c (extent_scan_read) [!linux]: Always set
scan->initial_scan_failed so caller knows not to report the failure.

src/extent-scan.c

index 9f38877..1ba59db 100644 (file)
@@ -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;
 }