]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
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 9f388772618a7152a3ca17daf1158a97d0eb2272..1ba59dbfd040529198a4d6e2a3c104314364ac46 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;
 }