Re: [GSoC][PATCH 1/3] path.c: Add xdg_cache_home to get paths under XDG_CACHE_HOME

2017-03-13 Thread Devin Lehmacher
> And one final note. I notice that we return NULL if the user has no > HOME. But I'm not sure most callers are prepared to handle this. E.g., > if you have no ident set and no HOME, then we will pass NULL to lstat(). > On Linux at least that just gets you EFAULT, but I wouldn't be surprised > if i

Re: [GSoC][PATCH 1/3] path.c: Add xdg_cache_home to get paths under XDG_CACHE_HOME

2017-03-13 Thread Jeff King
On Mon, Mar 13, 2017 at 01:22:30PM -0400, Devin Lehmacher wrote: > Subject: Re: [GSoC][PATCH 1/3] path.c: Add xdg_cache_home to get paths under > XDG_CACHE_HOME It's nice to keep subject lines succinct, as people will skim through them in "shortlog" or "log --oneline

[GSoC][PATCH 1/3] path.c: Add xdg_cache_home to get paths under XDG_CACHE_HOME

2017-03-13 Thread Devin Lehmacher
This is necessary to make it posible to use XDG_CACHE_HOME for caches in the XDG standard. I modeled this after the very similar xdg_config_home function for obtaining paths to functions under XDG_CONFIG_HOME Signed-off-by: Devin Lehmacher --- cache.h | 7 +++ path.c | 15 +++