From b110fb9e3d2403034db5267fd99f1317c74e0627 Mon Sep 17 00:00:00 2001 From: ianmdlvl Date: Wed, 23 May 2007 17:57:00 +0000 Subject: [PATCH] * summer has new -M (do not print mtimes) option. --- cprogs/summer.c | 21 +++++++++++++-------- debian/changelog | 6 ++++++ 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/cprogs/summer.c b/cprogs/summer.c index 5e85111..3970c36 100644 --- a/cprogs/summer.c +++ b/cprogs/summer.c @@ -26,7 +26,7 @@ #define MAXDEPTH 1024 #define CSUMXL 32 -static int quiet=0, hidectime=0, hideatime=0; +static int quiet=0, hidectime=0, hideatime=0, hidemtime=0; static int hidedirsize=0, hidelinkmtime=0, onefilesystem=0; static int filenamefieldsep=' '; static FILE *errfile; @@ -238,14 +238,16 @@ static void node(const char *path, unsigned nodeflags, dev_t fs) { pu10(); } - if (stab) - if (S_ISLNK(stab->st_mode) && hidelinkmtime) - printf(" %10s","link"); + if (!hidemtime) { + if (stab) + if (S_ISLNK(stab->st_mode) && hidelinkmtime) + printf(" %10s","link"); + else + printf(" %10lu", + (unsigned long)stab->st_mtime); else - printf(" %10lu", - (unsigned long)stab->st_mtime); - else - pu10(); + pu10(); + } if (!hidectime) { if (stab) @@ -388,6 +390,9 @@ int main(int argc, const char *const *argv) { case 'A': hideatime= 1; break; + case 'M': + hidemtime= 1; + break; case 'f': errfile= stdout; break; diff --git a/debian/changelog b/debian/changelog index 2bc2e8f..2c8e55c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +chiark-utils (4.1.17) unstable; urgency=low + + * summer has new -M (do not print mtimes) option. + + -- Ian Jackson Wed, 23 May 2007 18:56:53 +0100 + chiark-utils (4.1.16) unstable; urgency=low * chiark-backup's snaprsync has new rsynccompress option. -- 2.30.2