Commit 634d7816c90b86815b9c4f08573197b14da9755c

Thomas de Grivel 2018-07-10T12:53:58

fix mode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/unix/stat.lisp b/unix/stat.lisp
index d0f379f..d17bee9 100644
--- a/unix/stat.lisp
+++ b/unix/stat.lisp
@@ -120,6 +120,9 @@
       (make-instance 'mode :fixnum (parse-integer s :radix 8))
       (parse-mode-string s)))
 
+(defmethod mode ((x null))
+  (make-instance 'mode :fixnum 0))
+
 (defmethod print-object ((mode mode) stream)
   (prin1 `(mode ,(if (mode-type mode)
                      (mode-string mode)