Hey all,

I wrote a patch to allow tilde paths when specifying a socket to listen on.
All other paths in the config file already supported this, but not the
bind_to_address option. With this, users can share the same configuration
file (possibly system wide under /etc) and still run their own mpd instance
with a socket somewhere under their home directory.

While patching this in, I also noticed that tilde paths weren't properly
parsed in the latest git version. For example: `~/.mpd/database' became
`/home/maarten/~/.mpd/database'. I also fixed that by mostly replacing the
old function. The version in my patch uses std::string and iterators rather
than old C strings and C functions. It's C++ now after all and I found it
much easier that way.

The patches are attached, any comments are welcome.


Kind regards,
Maarten

Attachment: 0001-ConfigPath-Fix-relative-to-the-home-directory.patch
Description: Binary data

Attachment: 0001-Listen-Allow-tilde-paths-for-socket.patch
Description: Binary data

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
Musicpd-dev-team mailing list
Musicpd-dev-team@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team

Reply via email to