From: Eric Bollengier Date: Wed, 12 Aug 2009 14:48:01 +0000 (+0200) Subject: fix offset in new lsdirs/lsfiles command X-Git-Tag: Release-5.0.0~333^2~5^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cbb5639be34be4f7d134fd95bb205a94f93b103c;p=bacula%2Fbacula fix offset in new lsdirs/lsfiles command --- diff --git a/bacula/src/dird/ua_dotcmds.c b/bacula/src/dird/ua_dotcmds.c index 92790af810..363d12fd8f 100644 --- a/bacula/src/dird/ua_dotcmds.c +++ b/bacula/src/dird/ua_dotcmds.c @@ -262,9 +262,8 @@ static bool dot_lsfiles(UAContext *ua, const char *cmd) Bvfs fs(ua->jcr, ua->db); fs.set_jobids(jobid); - fs.set_limit(limit); - fs.set_offset(offset); fs.set_handler(bvfs_result_handler, ua); + fs.set_limit(limit); if (pathid) { fs.ch_dir(pathid); @@ -272,6 +271,8 @@ static bool dot_lsfiles(UAContext *ua, const char *cmd) fs.ch_dir(path); } + fs.set_offset(offset); + fs.ls_files(); return true; @@ -298,7 +299,6 @@ static bool dot_lsdirs(UAContext *ua, const char *cmd) Bvfs fs(ua->jcr, ua->db); fs.set_jobids(jobid); fs.set_limit(limit); - fs.set_offset(offset); fs.set_handler(bvfs_result_handler, ua); if (pathid) { @@ -307,6 +307,8 @@ static bool dot_lsdirs(UAContext *ua, const char *cmd) fs.ch_dir(path); } + fs.set_offset(offset); + fs.ls_special_dirs(); fs.ls_dirs();