From 7362f023c1f0f6d5eb7dec293866e24e6c86109a Mon Sep 17 00:00:00 2001 From: Stephan Duehr Date: Thu, 4 May 2017 22:08:06 +0200 Subject: [PATCH] Fix .bvfs_lsdirs --- src/cats/bvfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cats/bvfs.c b/src/cats/bvfs.c index 4eab5049a80..463267acf4d 100644 --- a/src/cats/bvfs.c +++ b/src/cats/bvfs.c @@ -648,7 +648,7 @@ void Bvfs::ls_special_dirs() edit_uint64(pwd_id, ed1), ed1); Mmsg(query2,// 1 2 3 4 5 6 -"SELECT 'D', tmp.PathId, 0, tmp.Path, JobId, LStat, FileId " +"SELECT 'D', tmp.PathId, tmp.Path, JobId, LStat, FileId " "FROM %s AS tmp LEFT JOIN ( " // get attributes if any "SELECT File1.PathId AS PathId, File1.JobId AS JobId, " "File1.LStat AS LStat, File1.FileId AS FileId FROM File AS File1 " @@ -693,7 +693,7 @@ bool Bvfs::ls_dirs() /* Then we get all the dir entries from File ... */ Mmsg(query, // 0 1 2 3 4 5 -"SELECT 'D', PathId, 0, Path, JobId, LStat, FileId FROM ( " +"SELECT 'D', PathId, Path, JobId, LStat, FileId FROM ( " "SELECT Path1.PathId AS PathId, Path1.Path AS Path, " "lower(Path1.Path) AS lpath, " "listfile1.JobId AS JobId, listfile1.LStat AS LStat, "