server: Fix the file notification interface to use directory handles.
diff --git a/server/file.c b/server/file.c
index f488c55..ac48e55 100644
--- a/server/file.c
+++ b/server/file.c
@@ -172,7 +172,9 @@
     fd = open_fd( name, flags | O_NONBLOCK | O_LARGEFILE, &mode, access, sharing, options );
     if (!fd) goto done;
 
-    if (S_ISCHR(mode) && is_serial_fd( fd ))
+    if (S_ISDIR(mode))
+        obj = create_dir_obj( fd );
+    else if (S_ISCHR(mode) && is_serial_fd( fd ))
         obj = create_serial( fd, options );
     else
         obj = create_file_obj( fd, access, options );