1
0
mirror of https://github.com/rclone/rclone.git synced 2025-01-29 21:04:23 +02:00
Nick Craig-Wood 54deb01f00 vfs: Make OpenFile and friends return EINVAL if O_RDONLY and O_TRUNC
Before this change Open("name", os.O_RDONLY|os.O_TRUNC) would have
truncated the file.  This is what Linux does, but is counterintuitive.
POSIX states this is undefined, so return an error in this case
instead.  This preserves the invariant O_RDONLY => file is not
changed.
2018-02-26 17:04:27 +00:00
..
2018-01-06 14:41:36 +00:00
2018-02-02 13:46:56 +00:00