simon-git: putty (master): Simon Tatham

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Mon Aug 8 20:40:03 BST 2016


TL;DR:
  23a02f4 New Unix utility function to make a directory path.
  9952b2d Added support for the XDG specification

Repository:     git://git.tartarus.org/simon/putty.git
On the web:     http://tartarus.org/~simon-git/gitweb/?p=putty.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2016-08-08 20:40:03

commit 23a02f429c0449e7d81c740271aa0c4790b7f140
web diff http://tartarus.org/~simon-git/gitweb/?p=putty.git;a=commitdiff;h=23a02f429c0449e7d81c740271aa0c4790b7f140;hp=9398d230339d5bfaa94093af89a17abf33b5dfad
Author: Simon Tatham <anakin at pobox.com>
Date:   Sun Aug 7 21:02:55 2016 +0100

    New Unix utility function to make a directory path.
    
    Essentially 'mkdir -p' - we try to make each prefix of the pathname,
    terminating on any error other than EEXIST. Semantics are similar to
    make_dir_and_check_ours(): we return NULL on success or a dynamically
    allocated error message string on failure.

 unix/unix.h   |    2 ++
 unix/uxmisc.c |   25 +++++++++++++++++++++++++
 2 files changed, 27 insertions(+)

commit 9952b2d5bd5c8fbac4f5731a805bce10fe4ce47c
web diff http://tartarus.org/~simon-git/gitweb/?p=putty.git;a=commitdiff;h=9952b2d5bd5c8fbac4f5731a805bce10fe4ce47c;hp=23a02f429c0449e7d81c740271aa0c4790b7f140
Author: Ondřej Lysoněk <olysonek at redhat.com>
Date:   Tue Aug 2 15:12:43 2016 +0200

    Added support for the XDG specification
    
    The XDG configuration location ($XDG_CONFIG_HOME/putty, or
    ~/.config/putty) is now prefered over the old ~/.putty location, if the
    XDG location already exists. If it doesn't exist, we try to use one of
    the old locations ($HOME/.putty, [/etc/passwd home]/.putty, /.putty). If
    none of the directories exist, we fall back to ~/.config/putty or
    ~/.putty, if the XDG_DEFAULT macro is defined or not, respectively. The
    PUTTYDIR environment variable remains a definitive override of the
    configuration location. This all ensures that the old location is still
    used, unless the user explicitly requests otherwise.
    
    The configuration directories are created using the make_dir_path()
    function, to ensure that saving the configuration doesn't fail e.g.
    because of a non-existent ~/.config directory.

 unix/uxstore.c |  103 ++++++++++++++++++++++++++++++++++++++++++++------------
 1 file changed, 82 insertions(+), 21 deletions(-)



More information about the tartarus-commits mailing list