Skip to content

Commit feb3651

Browse files
committed
Auto merge of #3271 - pietroalbini:com0-lpt0, r=jtgeibel
Add COM0 and LPT0 to the list of reserved crate names In #695 we added all the documented reserved Windows file names to the list of reserved crate names, to prevent people from registering crates named that way and breaking all Windows users in the process. Unfortunately it turns out that COM0 and LPT0 are *also* reserved on Windows systems, but they're not documented in Microsoft's docs. This PR adds both names to the reserved crate names list. Note that the migration here is a no-op on the production crates.io instance, as both names were manually added to the database before opening this PR. r? `@jtgeibel`
2 parents a697197 + 4f6b8c9 commit feb3651

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DELETE FROM reserved_crate_names WHERE name IN ('com0', 'lpt0');
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
INSERT INTO reserved_crate_names (name) VALUES ('com0'), ('lpt0') ON CONFLICT DO NOTHING;

0 commit comments

Comments
 (0)