Use better type test.
authorOlof-Joachim Frahm <olof@macrolet.net>
Thu, 15 Jan 2015 23:35:49 +0000 (23:35 +0000)
committerOlof-Joachim Frahm <olof@macrolet.net>
Thu, 15 Jan 2015 23:42:23 +0000 (23:42 +0000)
src/inotify.lisp

index 87931fc..fe404a3 100644 (file)
@@ -83,9 +83,9 @@
     (member :dont-follow :mask-add :oneshot :onlydir)))
 
 (defun valid-watch-flag-p (x)
-  (and (typep x 'inotify-add-flag)
-       (not (eq :mask-add x))
-       (not (eq :oneshot x))))
+  (or (typep x 'inotify-read-flag)
+      (eq :dont-follow x)
+      (eq :onlydir x)))
 
 (defun valid-watch-flag-list-p (list)
   (every #'valid-watch-flag-p list))