From 699ee3c3689090ddd8a4ed2c28b45375189c4555 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Fri, 20 Dec 2002 17:54:24 +0000 Subject: [PATCH] Don't keep zero-length logs. --- etc/update-rcs-log | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/etc/update-rcs-log b/etc/update-rcs-log index 5d94e93ac..c6e485f22 100755 --- a/etc/update-rcs-log +++ b/etc/update-rcs-log @@ -20,8 +20,11 @@ generate_log_gopts () cvs2cl --global-opts "${2}" --revisions --usermap "${UM}" --stdout > "${N}" if cmp "${N}" "${O}"; then rm -f "${N}" - else + elif [ -s "${N}" ]; then mv -f "${N}" "${O}" + else + echo "Discarding zero-length log." + rm -f "${N}" fi } -- 2.25.1