Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
Samba
Samba
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Bugzilla
    • Bugzilla
  • Labels
  • Merge Requests 111
    • Merge Requests 111
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • External Wiki
    • External Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • The Samba Team
  • SambaSamba
  • Merge Requests
  • !1341

Closed
Opened May 14, 2020 by Ralph Böhme@slowfranklin💬Owner
  • Report abuse
Report abuse

Fix for bug 14380

  • Overview 2
  • Commits 3
  • Pipelines 1
  • Changes 27

Jeremy, here's a nice one: our root_dir_fid code for SMB1 is completely broken. This MR fixes it and then also removes the root_dir_fd arg from SMB_VFS_CREATE_FILE().

The only two callers that pass a root_dir_fid != 0 are reply_ntcreate_and_X() and call_nt_transact_create(). Both functions pass the relative wirename to filename_convert() which is wrong it is relative to root_dir_fid so filename_convert() will not be able to stat() the relative path and it's components.

As the only test I can find that uses a root dir_fid is raw.samba3rootdirfid and that uses a handle on the share root which will work, the relative name hits the "creating file" codepath in unix_convert(), so the special testcase covered by the test works.

Note: the last patch of the series is for master only.

Edited May 14, 2020 by Ralph Böhme
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Reference: samba-team/samba!1341
Source branch: slow-bug14380