From 3bfdf32a7ef12e9bc83ddc1ced536536feeb3d05 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Thu, 22 Feb 2018 16:31:46 +0100 Subject: verify: Account for EOPNOTSUPP when opening sockets on FBSD --- gemato/verify.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gemato/verify.py b/gemato/verify.py index 7cef4e5..8a90506 100644 --- a/gemato/verify.py +++ b/gemato/verify.py @@ -42,8 +42,9 @@ def get_file_metadata(path, hashes): if err.errno == errno.ENOENT: exists = False opened = False - elif err.errno == errno.ENXIO: - # unconnected device or socket + elif err.errno in (errno.ENXIO, errno.EOPNOTSUPP): + # ENXIO = unconnected device or socket + # EOPNOTSUPP = opening UNIX socket on FreeBSD exists = True opened = False else: -- cgit v1.2.3