From: Kern Sibbald Date: Tue, 23 Feb 2010 11:12:43 +0000 (+0100) Subject: Tweak testls.c X-Git-Tag: Release-5.2.1~1687 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6fef7746693f11db8397c06d61b7427181eb49e9;p=bacula%2Fbacula Tweak testls.c --- 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);