[mpd-devel] [PATCH] settings: add support for reading ~/.authinfo file

2014-10-15 Thread Michal Nazarewicz
Instead of storing password in MPD_HOST environment variable (which is passed around everywhere) allow saving password in an ~/.authinfo file. This is especially useful if MPD is listening on default host:port, i.e. localhost:6600, in which case all one needs to do is to put line like mach

[mpd-devel] [PATCH] settings: add support for reading ~/.authinfo file

2014-11-28 Thread Michal Nazarewicz
From: Michal Nazarewicz Instead of storing password in MPD_HOST environment variable (which is passed around everywhere) allow saving password in an ~/.authinfo file. This is especially useful if MPD is listening on default host:port, i.e. localhost:6600, in which case all one needs to do is to

[mpd-devel] [PATCHv3 1/2] settings: support service names in MPD_PORT variable

2014-12-01 Thread Michal Nazarewicz
From: Michal Nazarewicz If $MPD_PORT is not a number, i.e. does not start with a digit, attempt to resolve it using getservbyname, i.e. by reading the /etc/services database. --- src/settings.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src

[mpd-devel] [PATCHv3 2/2] settings: add support for reading ~/.authinfo file

2014-12-01 Thread Michal Nazarewicz
From: Michal Nazarewicz Instead of storing password in MPD_HOST environment variable (which is passed around everywhere) allow saving password in an ~/.authinfo file. This is especially useful if MPD is listening on default host:port, i.e. localhost:6600, in which case all one needs to do is to

Re: [mpd-devel] [PATCHv3 2/2] settings: add support for reading ~/.authinfo file

2014-12-01 Thread Michal Nazarewicz
On Mon, Dec 01 2014, Michal Nazarewicz wrote: > From: Michal Nazarewicz > > Instead of storing password in MPD_HOST environment variable (which > is passed around everywhere) allow saving password in an ~/.authinfo > file. This is especially useful if MPD is listening on defa

[mpd-devel] [PATCHv4 1/2] settings: support service names in MPD_PORT variable

2014-12-03 Thread Michal Nazarewicz
From: Michal Nazarewicz If $MPD_PORT is not a number, i.e. does not start with a digit, attempt to resolve it using getservbyname, i.e. by reading the /etc/services database. --- src/settings.c | 33 - 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a

[mpd-devel] [PATCHv4 2/2] settings: add support for reading ~/.authinfo file

2014-12-03 Thread Michal Nazarewicz
From: Michal Nazarewicz Instead of storing password in MPD_HOST environment variable (which is passed around everywhere) allow saving password in an ~/.authinfo file. This is especially useful if MPD is listening on default host:port, i.e. localhost:6600, in which case all one needs to do is to

Re: [mpd-devel] [PATCHv4 1/2] settings: support service names in MPD_PORT variable

2014-12-03 Thread Michal Nazarewicz
> On 2014/12/03 21:13, Michal Nazarewicz wrote: >> If $MPD_PORT is not a number, i.e. does not start with a digit, >> attempt to resolve it using getservbyname, i.e. by reading the >> /etc/services database. On Wed, Dec 03 2014, Max Kellermann wrote: > This now passes the