| ... | @@ -419,7 +419,7 @@ pub fn main() !void { | ... | @@ -419,7 +419,7 @@ pub fn main() !void { |
| 419 | std.posix.fanotify_mark(w.fan_fd, .{ | 419 | std.posix.fanotify_mark(w.fan_fd, .{ |
| 420 | .ADD = true, | 420 | .ADD = true, |
| 421 | .ONLYDIR = true, | 421 | .ONLYDIR = true, |
| 422 | }, Watch.fan_mask, path.root_dir.handle.fd, path.subPathOpt()) catch |err| { | 422 | }, Watch.fan_mask, path.root_dir.handle.fd, path.subPathOrDot()) catch |err| { |
| 423 | fatal("unable to watch {}: {s}", .{ path, @errorName(err) }); | 423 | fatal("unable to watch {}: {s}", .{ path, @errorName(err) }); |
| 424 | }; | 424 | }; |
| 425 | | 425 | |
| ... | @@ -471,7 +471,7 @@ pub fn main() !void { | ... | @@ -471,7 +471,7 @@ pub fn main() !void { |
| 471 | try std.posix.fanotify_mark(w.fan_fd, .{ | 471 | try std.posix.fanotify_mark(w.fan_fd, .{ |
| 472 | .REMOVE = true, | 472 | .REMOVE = true, |
| 473 | .ONLYDIR = true, | 473 | .ONLYDIR = true, |
| 474 | }, Watch.fan_mask, path.root_dir.handle.fd, path.subPathOpt()); | 474 | }, Watch.fan_mask, path.root_dir.handle.fd, path.subPathOrDot()); |
| 475 | | 475 | |
| 476 | w.dir_table.swapRemoveAt(i); | 476 | w.dir_table.swapRemoveAt(i); |
| 477 | w.handle_table.swapRemoveAt(i); | 477 | w.handle_table.swapRemoveAt(i); |