Skip to content

lib/model: Disallow reserved names, and names ending with period on Windows (fixes #7008) - #7010

Merged
AudriusButkevicius merged 1 commit into
syncthing:mainfrom
calmh:nowindowsdots
Sep 28, 2020
Merged

AudriusButkevicius merged 1 commit into
syncthing:mainfrom
calmh:nowindowsdots

Conversation

@calmh

@calmh calmh commented Sep 28, 2020

Copy link
Copy Markdown
Member

Like we already do with names ending in space or containing invalid
characters.

…indows (fixes syncthing#7008)

Like we already do with names ending in space or containing invalid
characters.
@calmh calmh changed the title lib/model: Disallow names ending with period on Windows (fixes #7008) lib/model: Disallow reserved names, and names ending with period on Windows (fixes #7008) Sep 28, 2020
@AudriusButkevicius
AudriusButkevicius merged commit df99237 into syncthing:main 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 calmh added this to the v1.10.1 milestone Sep 28, 2020
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
@st-review st-review added the frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion label Sep 29, 2021
@syncthing syncthing locked and limited conversation to collaborators Sep 29, 2021
@calmh
calmh deleted the nowindowsdots branch May 26, 2025 13:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants