fcaps.eclass: support ENOTSUP in addition to EOPNOTSUPP #559608
authorMike Frysinger <vapier@gentoo.org>
Sat, 5 Sep 2015 00:18:07 +0000 (20:18 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 5 Sep 2015 00:18:07 +0000 (20:18 -0400)
eclass/fcaps.eclass

index 046043c031e75f8e1650f2af7190546b8db58cff..b203a913ffb3268b50f3a404fdb3f99ae129f0e2 100644 (file)
@@ -162,6 +162,9 @@ fcaps() {
                                                : $(( ++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:"