Package: nvi
Version: 1.79-22
Severity: minor
Tags: patch

The "Recovering nvi editor sessions..." starting message is a bit
scary since it suggests that there are indeed editor sessions to
recover.  It would be nice if this message was only printed if there
are files in /var/tmp/vi.recover/




--- nviboot~    2005-11-25 16:14:51.000000000 +0000
+++ nviboot     2005-11-25 16:18:27.000000000 +0000
@@ -13,6 +13,9 @@
 
 case "$1" in
   start)
+    recover=`ls -1 $RECDIR`
+    [ -z "$recover" ] && exit 0
+
     echo -n 'Recovering nvi editor sessions... '
 
     # Check editor backup files.



-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

-- 
Martin Michlmayr
http://www.cyrius.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to