]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
src/rrd_list.c: fix local directory listing when connection to rrdcached fails 737/head
authorMarek Schimara <Marek.Schimara@bull.net>
Wed, 7 Sep 2016 12:24:21 +0000 (14:24 +0200)
committerMarek Schimara <Marek.Schimara@bull.net>
Wed, 7 Sep 2016 12:41:54 +0000 (14:41 +0200)
commitd5ab775bb7e037e02da9f48e18ee892501264655
tree5fb6cc4e3b12eeac255aafb0a9f27408a5c62a18
parent78913fe6f4f96f615766ad19e859789a33c257fb
src/rrd_list.c: fix local directory listing when connection to rrdcached fails

        Without this fix, when the remote rrdcached cannot be reached
        and a path that exists on the local machine (such as '/') is
        asked for,  'list' returns 'ls' of the local path.

        Example of erroneous output:

$ rrdtool list -d rrdcached-host:42222 /
        Error connecting to rrdcached: Unable to connect to rrdcached: Connection refused
        var
        storage
        lib
        sysroot
        rules.d
        lib64
        backup
        opt
        bin
        sbin
        boot
        proc
        usr
        dev
        sys
        srv
        mnt
        run
        etc
        media
        tmp
        home
        root
        ERROR: Unable to connect to rrdcached: Connection refused
src/rrd_list.c