summaryrefslogtreecommitdiff
path: root/lib-src/rcs-checkin
diff options
context:
space:
mode:
authorPaul Eggert <eggert@twinsun.com>1993-07-29 19:56:38 +0000
committerPaul Eggert <eggert@twinsun.com>1993-07-29 19:56:38 +0000
commita38955a9719660722cdf16a96610ef3e33564b7f (patch)
treebea6d0fa65a1772748899cc04abb5cb1818f558f /lib-src/rcs-checkin
parentcfee8e0375ad3f92a7b5a6d7e3a10a051925c75a (diff)
downloademacs-a38955a9719660722cdf16a96610ef3e33564b7f.tar.gz
Don't check whether file is readable until we have decided not to ignore it.
Diffstat (limited to 'lib-src/rcs-checkin')
-rwxr-xr-xlib-src/rcs-checkin6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib-src/rcs-checkin b/lib-src/rcs-checkin
index 88fd01125f3..7b894eac83d 100755
--- a/lib-src/rcs-checkin
+++ b/lib-src/rcs-checkin
@@ -35,9 +35,6 @@ ls_owner_pattern='[^ ][^ ]* *[^ ][^ ]* *\([^ ][^ ]*\)'
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 @@ do
# 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 ||