Commit 523d730c2ab3d26e0d62fe5234c8fb0bdfefccd4

Thomas de Grivel 2020-04-18T14:55:28

fix unix stat

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/unix/stat.lisp b/unix/stat.lisp
index 703ffea..3fbd75b 100644
--- a/unix/stat.lisp
+++ b/unix/stat.lisp
@@ -144,4 +144,7 @@
 
 (defmethod match-specified-value ((resource vnode) (property (eql :mode))
                                   specified probed os)
-  (= (mode-fixnum specified) (mode-fixnum probed)))
+  (or (eq specified probed)
+      (and specified
+           probed
+           (= (mode-fixnum specified) (mode-fixnum probed)))))