From: Eric Bollengier Date: Wed, 12 Aug 2009 10:24:17 +0000 (+0200) Subject: add comments and list special dirs in .lsdirs X-Git-Tag: Release-5.0.0~333^2~5^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=908e9c94311b740c915c0e64a26a184826445183;p=bacula%2Fbacula add comments and list special dirs in .lsdirs --- diff --git a/bacula/src/dird/ua_dotcmds.c b/bacula/src/dird/ua_dotcmds.c index 7f5f4cb591..92790af810 100644 --- a/bacula/src/dird/ua_dotcmds.c +++ b/bacula/src/dird/ua_dotcmds.c @@ -237,12 +237,16 @@ static bool bvfs_parse_arg(UAContext *ua, } if (!open_client_db(ua)) { - return 1; + return false; } return true; } +/* + * .lsfiles jobid=1,2,3,4 pathid=10 + * .lsfiles jobid=1,2,3,4 path=/ + */ static bool dot_lsfiles(UAContext *ua, const char *cmd) { DBId_t pathid=0; @@ -273,6 +277,11 @@ static bool dot_lsfiles(UAContext *ua, const char *cmd) return true; } +/* + * .lsdirs jobid=1,2,3,4 pathid=10 + * .lsdirs jobid=1,2,3,4 path=/ + * .lsdirs jobid=1,2,3,4 path= + */ static bool dot_lsdirs(UAContext *ua, const char *cmd) { DBId_t pathid=0; @@ -298,6 +307,7 @@ static bool dot_lsdirs(UAContext *ua, const char *cmd) fs.ch_dir(path); } + fs.ls_special_dirs(); fs.ls_dirs(); return true;