changeset 4343:aa19e3673b9f

Don't check whether file is readable until we have decided not to ignore it.
author Paul Eggert <eggert@twinsun.com>
date Thu, 29 Jul 1993 19:56:38 +0000
parents 1088a9aa4fd0
children be116c77da2f
files lib-src/rcs-checkin
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/rcs-checkin	Thu Jul 29 18:24:32 1993 +0000
+++ b/lib-src/rcs-checkin	Thu Jul 29 19:56:38 1993 +0000
@@ -35,9 +35,6 @@
 
 for file
 do
-	# Check that file is readable.
-	<$file || exit
-
 	# Make it easier to say `rcs-checkin *'
 	# by ignoring file names that already contain `~', or end in `,v'.
 	case $file in
@@ -46,6 +43,9 @@
 	# Ignore non-files too.
 	test -f "$file" || continue
 
+	# Check that file is readable.
+	<$file || exit
+
 	# If the RCS file does not already exist,
 	# initialize it with a description from $file's first line.
 	rlog -R "$file" >/dev/null 2>&1 ||