Skip to content

bugfix: findfirst: a device can not be a volume label …#259

Merged
PerditionC merged 1 commit into
masterfrom
build-rework
Jul 1, 2026
Merged

bugfix: findfirst: a device can not be a volume label …#259
PerditionC merged 1 commit into
masterfrom
build-rework

Conversation

@PerditionC

Copy link
Copy Markdown
Contributor

… so don't match if looking for volume label

Copilot AI review requested due to automatic review settings July 1, 2026 09:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts DosFindFirst()’s special-case device-name matching so that device paths are not returned when the caller is requesting a volume label search.

Changes:

  • Gate the IS_DEVICE “match device name” branch so it does not trigger for volume-label searches (D_VOLID).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread kernel/dosfns.c
Comment on lines 1086 to 1089
if (rc & IS_NETWORK)
rc = network_redirector_fp(REM_FINDFIRST, current_ldt);
else if (rc & IS_DEVICE)
else if (rc & IS_DEVICE && !(attr & D_VOLID)) /* DEVICE can't be a volume label */
{
@PerditionC PerditionC merged commit d6791ad into master Jul 1, 2026
3 checks passed
@PerditionC

Copy link
Copy Markdown
Contributor Author

Is the copilot review automatic now, or some option I set (I didn't uncheck)? curious

@andrewbird

Copy link
Copy Markdown
Contributor

I've not seen it applied to any other project automatically, and it's not something I've added.

@andrewbird

Copy link
Copy Markdown
Contributor

Have a look at this page, there are several places it can be. I looked but couldn't see anything set, but check your personal account settings too.

https://docs.github.com/en/copilot/how-tos/copilot-on-github/set-up-copilot/configure-automatic-review#configuring-automatic-code-review-for-your-own-pull-requests .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants