Skip to content

lib/fs: Add COM0 and LPT0 to invalid Windows file names - #7013

Merged
calmh merged 1 commit into
syncthing:mainfrom
tomasz1986:tomasz86-windowsnames
Sep 28, 2020
Merged

calmh merged 1 commit into
syncthing:mainfrom
tomasz1986:tomasz86-windowsnames

Conversation

@tomasz1986

Copy link
Copy Markdown
Member

COM0 and LPT0 are not listed in the official Microsoft's documentation
at https://docs.microsoft.com/windows/win32/fileio/naming-a-file, but
in reality are also invalid in Windows Explorer.

Signed-off-by: Tomasz Wilczyński [email protected]

COM0 and LPT0 are not listed in the official Microsoft's documentation
at https://docs.microsoft.com/windows/win32/fileio/naming-a-file, but
in reality are also invalid in Windows Explorer.

Signed-off-by: Tomasz Wilczyński <[email protected]>
@tomasz1986

tomasz1986 commented Sep 28, 2020 •

Copy link
Copy Markdown
Member Author

These two are actually a little different from the others, because CMD can operate on them (without relying on the \\?\ syntax), but Explorer still treats them as "invalid", so I think that they should be added to the list.

image

@calmh
calmh merged commit fb3281b into syncthing:main 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
@calmh calmh added this to the v1.11.0 milestone Oct 2, 2020
@tomasz1986
tomasz1986 deleted the tomasz86-windowsnames branch October 8, 2020 02:13
@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
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