Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
M
mpd
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Registry
    • Registry
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Иван Мажукин
  • mpd
  • Repository

Switch branch/tag
  • mpd
  • src
  • fs
  • StandardDirectory.cxx
Find file
BlameHistoryPermalink
  • Max Kellermann's avatar
    fs/StandardDirectory: don't fall back to getpwuid() without $HOME · 3cacb56b
    Max Kellermann authored Jan 17, 2023
    If the environment variable $HOME does not exist, don't attempt to
    obtain it from /etc/passwd; without $HOME, the calling process
    indicates that it does not wish MPD to access the home directory.
    
    This also prevents MPD from attempting to load
    `/root/.config/mpd/mpd.conf` if MPD got started as global systemd
    service.  Reading from there makes no sense, only /etc/mpd.conf shall
    be used then.
    
    This piece of code was initially added by commit 5d857921.
    
    Closes https://github.com/MusicPlayerDaemon/MPD/issues/1687
    3cacb56b
StandardDirectory.cxx 8.19 KB
EditWeb IDE

Replace StandardDirectory.cxx

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.