From 908e9c94311b740c915c0e64a26a184826445183 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Wed, 12 Aug 2009 12:24:17 +0200 Subject: [PATCH] add comments and list special dirs in .lsdirs --- bacula/src/dird/ua_dotcmds.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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; -- 2.39.5