From c2272021f7e0985b0adb6f181336febe754f9751 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Tue, 23 Feb 2010 12:12:43 +0100 Subject: [PATCH] Tweak testls.c --- bacula/src/tools/testls.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bacula/src/tools/testls.c b/bacula/src/tools/testls.c index 6fd6e63753..0926db8b4a 100644 --- a/bacula/src/tools/testls.c +++ b/bacula/src/tools/testls.c @@ -27,6 +27,8 @@ */ /* * Test program for listing files during regression testing + * Links have their permissions and time bashed since they cannot + * be set by Bacula. * * Kern Sibbald, MM * @@ -243,7 +245,7 @@ static int print_file(JCR *jcr, FF_PKT *ff, bool top_level) static void print_ls_output(char *fname, char *link, int type, struct stat *statp) { - char buf[1000]; + char buf[2000]; char ec1[30]; char *p, *f; int n; @@ -257,7 +259,7 @@ static void print_ls_output(char *fname, char *link, int type, struct stat *stat p += n; n = sprintf(p, "%-4d %-4d", (int)statp->st_uid, (int)statp->st_gid); p += n; - n = sprintf(p, "%7.7s ", edit_uint64(statp->st_size, ec1)); + n = sprintf(p, "%10.10s ", edit_uint64(statp->st_size, ec1)); p += n; if (S_ISCHR(statp->st_mode) || S_ISBLK(statp->st_mode)) { n = sprintf(p, "%4x ", (int)statp->st_rdev); -- 2.39.5