From 9def6b02b2cc76ffb0f462358f7ad60c5920b950 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sun, 19 Mar 1995 06:09:01 +0000 Subject: [PATCH] Make the +%d-%d part +%03d-%03d so ls(1) sorts the files more sensibly. --- usr.sbin/ctm/ctm_rmail/ctm_rmail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/ctm/ctm_rmail/ctm_rmail.c b/usr.sbin/ctm/ctm_rmail/ctm_rmail.c index 4a82e1f75d2d..cc42e3f79516 100644 --- a/usr.sbin/ctm/ctm_rmail/ctm_rmail.c +++ b/usr.sbin/ctm/ctm_rmail/ctm_rmail.c @@ -114,7 +114,7 @@ main(int argc, char **argv) * Construct the file name of a piece of a delta. */ #define mk_piece_name(fn,d,p,n) \ - sprintf((fn), "%s/%s+%d-%d", piece_dir, (d), (p), (n)) + sprintf((fn), "%s/%s+%03d-%03d", piece_dir, (d), (p), (n)) /* * Construct the file name of an assembled delta.