[Libguestfs] [PATCH] handle: Improve error messaging if XDG_RUNTIME_DIR path does not exist.

Pino Toscano ptoscano at redhat.com
Mon Oct 31 09:39:34 UTC 2016


On Monday, 31 October 2016 08:50:34 CET Richard W.M. Jones wrote:
> If an environment variable such as XDG_RUNTIME_DIR or one of the
> tmpdirs or cachedir is set to a non-existent directory, improve the
> error message that the user will see so that (where possible) it
> includes the environment variable or API call.
> 
> This is still not bullet-proof because it's hard to display the
> environment variable if it is LIBGUESTFS_TMPDIR or
> LIBGUESTFS_CACHEDIR, but the main problem is with XDG_RUNTIME_DIR
> (because of systemd bugs).
> 
> Thanks: Hilko Bengen for identifying the bug.
> ---

LGTM.

Thanks,
-- 
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20161031/ddda3bb8/attachment.sig>


More information about the Libguestfs mailing list