rclone/lib/file
Charles Hamilton b778ec0142
windows: make rclone work with SeBackupPrivilege and/or SeRestorePrivilege
On Windows, this change includes the `FILE_FLAG_BACKUP_SEMANTICS` in
all calls to `CreateFile`.

Adding this flag allows is useful when rclone is running within a
security context that has `SeBackupPrivilege` and/or `SeRestorePrivilege`
token privileges enabled.

Without this flag, rclone cannot properly leverage special security
groups such as Backup Operators who possess the these privileges.

See: https://forum.rclone.org/t/rclone-sebackupprivilege-file-flag-backup-semantics/45339
See: https://github.com/rclone/rclone/pull/7877.
2024-06-07 13:26:30 +01:00
..
driveletter_other.go build: remove build constraint syntax for go 1.16 and older 2024-04-18 16:53:55 +02:00
driveletter_windows.go build: remove build constraint syntax for go 1.16 and older 2024-04-18 16:53:55 +02:00
file_other.go build: remove build constraint syntax for go 1.16 and older 2024-04-18 16:53:55 +02:00
file_test.go Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
file_windows.go windows: make rclone work with SeBackupPrivilege and/or SeRestorePrivilege 2024-06-07 13:26:30 +01:00
file.go lib/file: reimplement os.OpenFile allowing rename/delete open files under Windows 2019-01-11 10:26:34 +00:00
mkdir_other.go build: remove build constraint syntax for go 1.16 and older 2024-04-18 16:53:55 +02:00
mkdir_windows_test.go build: fix linting issues reported by golangci-lint on windows 2024-04-22 19:29:12 +02:00
mkdir_windows.go build: remove build constraint syntax for go 1.16 and older 2024-04-18 16:53:55 +02:00
preallocate_other.go build: remove build constraint syntax for go 1.16 and older 2024-04-18 16:53:55 +02:00
preallocate_unix.go build: remove build constraint syntax for go 1.16 and older 2024-04-18 16:53:55 +02:00
preallocate_windows.go build: fix linting issues reported by golangci-lint on windows 2024-04-22 19:29:12 +02:00
preallocate.go lib/file: make pre-allocate detect disk full errors and return them 2021-03-15 19:22:06 +00:00
unc_test.go build: remove build constraint syntax for go 1.16 and older 2024-04-18 16:53:55 +02:00
unc_windows.go build: remove build constraint syntax for go 1.16 and older 2024-04-18 16:53:55 +02:00
unc.go build: remove build constraint syntax for go 1.16 and older 2024-04-18 16:53:55 +02:00