fuser
fuser copied to clipboard
Use checked arithmetic for addition to Unix epoch.
The current code can panic with filesystems that do not store times. Using checked arithmetic allows such filesystems to operate without panic.
I'm not sure this is the right fix. That code path is only taken when the appropriate FATTR_CRTIME
...etc flag is set. Do you know why that flag is getting set without a valid timestamp passed in?
This is happening (at least for me on macOS) when sending FileAttr
to a ReplyEntry
with SystemTime::now()
and a TTL of 1s.
I wonder if this is also related to https://github.com/cberner/fuser/issues/217?