fcaps.eclass: support ENOTSUP in addition to EOPNOTSUPP #559608

BUG=b/179427028
TEST=presubmit
RELEASE_NOTE=None

Change-Id: I0008ea4d6984852539d9720fb263bd7e874cbeda
Reviewed-on: https://cos-review.googlesource.com/c/third_party/overlays/portage-stable/+/13213
Reviewed-by: Robert Kolchmeyer <rkolchmeyer@google.com>
Tested-by: Cusky Presubmit Bot <presubmit@cos-infra-prod.iam.gserviceaccount.com>
diff --git a/eclass/fcaps.eclass b/eclass/fcaps.eclass
index 8595caa..4558198 100644
--- a/eclass/fcaps.eclass
+++ b/eclass/fcaps.eclass
@@ -162,6 +162,9 @@
 						: $(( ++notfound ))
 						continue
 						;;
+					# ENOTSUP and EOPNOTSUPP might be the same value which means
+					# strerror() on them is unstable -- we can get both. #559608
+					*"Not supported"*|\
 					*"Operation not supported"*)
 						local fstype=$(stat -f -c %T "${file}")
 						ewarn "Could not set caps on '${file}' due to missing filesystem support:"