diff options
| author | Paul Eggert | 1993-07-29 19:56:38 +0000 |
|---|---|---|
| committer | Paul Eggert | 1993-07-29 19:56:38 +0000 |
| commit | 3b31174ce555de401fc196bb296e37b6597eb3aa (patch) | |
| tree | 1ecfb155a625b786b58a75814af85bc7246f52f9 /lib-src | |
| parent | 7520f3189088b9919d0780807c89892aa110ae23 (diff) | |
| download | emacs-3b31174ce555de401fc196bb296e37b6597eb3aa.tar.gz emacs-3b31174ce555de401fc196bb296e37b6597eb3aa.zip | |
Don't check whether file is readable until we have decided not to ignore it.
Diffstat (limited to 'lib-src')
| -rwxr-xr-x | lib-src/rcs-checkin | 6 |
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='[^ ][^ ]* *[^ ][^ ]* *\([^ ][^ ]*\)' | |||
| 35 | 35 | ||
| 36 | for file | 36 | for file |
| 37 | do | 37 | do |
| 38 | # Check that file is readable. | ||
| 39 | <$file || exit | ||
| 40 | |||
| 41 | # Make it easier to say `rcs-checkin *' | 38 | # Make it easier to say `rcs-checkin *' |
| 42 | # by ignoring file names that already contain `~', or end in `,v'. | 39 | # by ignoring file names that already contain `~', or end in `,v'. |
| 43 | case $file in | 40 | case $file in |
| @@ -46,6 +43,9 @@ do | |||
| 46 | # Ignore non-files too. | 43 | # Ignore non-files too. |
| 47 | test -f "$file" || continue | 44 | test -f "$file" || continue |
| 48 | 45 | ||
| 46 | # Check that file is readable. | ||
| 47 | <$file || exit | ||
| 48 | |||
| 49 | # If the RCS file does not already exist, | 49 | # If the RCS file does not already exist, |
| 50 | # initialize it with a description from $file's first line. | 50 | # initialize it with a description from $file's first line. |
| 51 | rlog -R "$file" >/dev/null 2>&1 || | 51 | rlog -R "$file" >/dev/null 2>&1 || |