Repository navigation
lib/model: Disallow reserved names, and names ending with period on Windows (fixes #7008) - #7010
Merged
Merged
Conversation
…indows (fixes syncthing#7008) Like we already do with names ending in space or containing invalid characters.
calmh
force-pushed
the
nowindowsdots
branch
from
September 28, 2020 06:36
903a1a0 to
97c081b
Compare
AudriusButkevicius
approved these changes
Sep 28, 2020
calmh
added a commit
to calmh/syncthing
that referenced
this pull request
Sep 28, 2020
Add specific errors for the failures, resulting in this rather than just the generic "invalid filename": [MRIW7] 08:40:41 INFO: Puller (folder default, item "NUL"): syncing: filename is invalid: is reserved name [MRIW7] 08:40:41 INFO: Puller (folder default, item "fail."): syncing: filename is invalid: ends with space or period [MRIW7] 08:40:41 INFO: Puller (folder default, item "sup:yo"): syncing: filename is invalid: contains reserved character [MRIW7] 08:40:41 INFO: default: Failed to sync 3 items
calmh
added a commit
to calmh/syncthing
that referenced
this pull request
Sep 28, 2020
Add specific errors for the failures, resulting in this rather than just the generic "invalid filename": [MRIW7] 08:40:41 INFO: Puller (folder default, item "NUL"): syncing: filename is invalid: is reserved name [MRIW7] 08:40:41 INFO: Puller (folder default, item "fail."): syncing: filename is invalid: ends with space or period [MRIW7] 08:40:41 INFO: Puller (folder default, item "sup:yo"): syncing: filename is invalid: contains reserved character [MRIW7] 08:40:41 INFO: default: Failed to sync 3 items
calmh
added a commit
to calmh/syncthing
that referenced
this pull request
Sep 28, 2020
Add specific errors for the failures, resulting in this rather than just the generic "invalid filename": [MRIW7] 08:50:50 INFO: Puller (folder default, item "NUL"): syncing: filename is invalid: name is reserved [MRIW7] 08:50:50 INFO: Puller (folder default, item "fail."): syncing: filename is invalid: name ends with space or period [MRIW7] 08:50:50 INFO: Puller (folder default, item "sup:yo"): syncing: filename is invalid: name contains reserved character [MRIW7] 08:50:50 INFO: default: Failed to sync 3 items
calmh
added a commit
to calmh/syncthing
that referenced
this pull request
Sep 28, 2020
Add specific errors for the failures, resulting in this rather than just the generic "invalid filename": [MRIW7] 08:50:50 INFO: Puller (folder default, item "NUL"): syncing: filename is invalid: name is reserved [MRIW7] 08:50:50 INFO: Puller (folder default, item "fail."): syncing: filename is invalid: name ends with space or period [MRIW7] 08:50:50 INFO: Puller (folder default, item "sup:yo"): syncing: filename is invalid: name contains reserved character [MRIW7] 08:50:50 INFO: default: Failed to sync 3 items
calmh
added a commit
that referenced
this pull request
Sep 28, 2020
Add specific errors for the failures, resulting in this rather than just the generic "invalid filename": [MRIW7] 08:50:50 INFO: Puller (folder default, item "NUL"): syncing: filename is invalid: name is reserved [MRIW7] 08:50:50 INFO: Puller (folder default, item "fail."): syncing: filename is invalid: name ends with space or period [MRIW7] 08:50:50 INFO: Puller (folder default, item "sup:yo"): syncing: filename is invalid: name contains reserved character [MRIW7] 08:50:50 INFO: default: Failed to sync 3 items
calmh
added a commit
to calmh/syncthing
that referenced
this pull request
Sep 29, 2020
* main: lib/fs: Add COM0 and LPT0 to invalid Windows file names (ref syncthing#7008) (syncthing#7013) lib/fs: Be even more strict about Windows names (ref syncthing#7008) (syncthing#7012) lib/fs: Be more clear about invalid file names (ref syncthing#7010) (syncthing#7011) lib/model: Disallow reserved names, and names ending with period on Windows (fixes syncthing#7008) (syncthing#7010) lib/model, lib/scanner: Prevent races aborting scans (fixes syncthing#6994) (syncthing#6997) lib/fs: Use file clone ioctl wrappers and types from golang.org/x/sys/unix (syncthing#7000) Update config.yml gui, man, authors: Update docs, translations, and contributors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Like we already do with names ending in space or containing invalid
characters.