syncthing/lib/osutil
Jakob Borg 59b1b0e1dc
lib/osutil: Fix "atomic" rename on Windows (ref #6495, ref #6493) (#6510)
So, in a funny plot twist, it turns out that WriteFile in Go 1.13
doesn't actually set the read only bit on Windows when called with
permissions 0444 so my test was broken. With an improved test it turns
out that Rename does not, in fact, overwrite a read-only file on
Windows. This adds a fix for that.

(Rename might get improved in Go 1.15...)
2020-04-07 15:38:55 +02:00
..
atomic_test.go lib/osutil: Fix "atomic" rename on Windows (ref #6495, ref #6493) (#6510) 2020-04-07 15:38:55 +02:00
atomic_unix_test.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
atomic.go lib/osutil: Fix "atomic" rename on Windows (ref #6495, ref #6493) (#6510) 2020-04-07 15:38:55 +02:00
filenames_darwin.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
filenames_unix.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
filenames_windows.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
hidden_unix.go all: Convert folders to use filesystem abstraction 2017-08-19 14:36:56 +00:00
hidden_windows.go all: Convert folders to use filesystem abstraction 2017-08-19 14:36:56 +00:00
lan.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
lowprio_linux.go lib/osutil: Use unix lowprio implementation on Android (#4844) 2018-03-27 22:03:09 +01:00
lowprio_unix.go lib/osutil: Use unix lowprio implementation on Android (#4844) 2018-03-27 22:03:09 +01:00
lowprio_windows.go lib/osutil: Fix priority lowering on Windows 2018-01-18 17:03:24 +00:00
net.go all: Remove dead code, fix lost msgLen checks (#6129) 2019-11-06 07:09:58 +01:00
osutil_test.go lib/model: Don't panic on failed chmod-back on directory (fixes #5836) (#5896) 2019-07-28 10:25:05 +02:00
osutil.go lib/model: Don't panic on failed chmod-back on directory (fixes #5836) (#5896) 2019-07-28 10:25:05 +02:00
ping.go lib/dialer: Preserve nilness in error handling (fixes #6368) (#6369) 2020-02-26 13:16:18 +01:00
replacingwriter_test.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
replacingwriter.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
rlimit_unix.go lib/osutil: Increase maxfiles on macOS properly (fixes #6206) (#6207) 2019-12-03 07:26:22 +01:00
rlimit_windows.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
symlink_windows.go all: Fix typos (#4772) 2018-02-24 08:51:29 +01:00
symlink.go lib/osutil, lib/scanner: Run symlink test on Windows when possible 2017-11-25 21:49:53 +00:00
tempfile.go all: Convert folders to use filesystem abstraction 2017-08-19 14:36:56 +00:00
traversessymlink_test.go all: Revert the underscore sillyness 2019-02-02 12:16:27 +01:00
traversessymlink.go lib/osutil: Fix TraversesSymlink with symlinked fs root on windows (fixes #4875) (#4886) 2018-04-17 22:53:06 +02:00