Subject: Problem with rcs...
From: [email-masked] (Ian Lowrey)

8 Mar 1998 16:12:05 -0800
Message-ID: <[email-masked]>
Mime-Version: 1.0
To: [email-masked]

Hi,

I'm having a problem getting RCS to work under Cygwin b19 on NT4/SP3. I
have built the source with the patches given below, and the problem is
that checking in a file with an "RCS/" directory present fails
completely (although the ci command reports "done"!). If there is no
"RCS/" directory present, or the RCS file is given explicitly all is ok.
It appears that the lock file and RCS file are getting mixed up somehow?
Advice and guidance from anyone who better understands rcs would be much
appreciated...

(CYGWIN32="tty", all mounts text!=binary)

Changes from original distribution:
-----------------------------------

diff orig/rcs-5.7/src/conf.sh /usr/local/src/rcs-5.7/src/conf.sh
550c550
< #     define FOPEN_R_WORK (Expand==BINARY_EXPAND ? "r" : "rb")
---
> #     define FOPEN_R_WORK (Expand==BINARY_EXPAND ? "rb" : "r")
552,553c552,553
< #     define FOPEN_W_WORK (Expand==BINARY_EXPAND ? "w" : "wb")
< #     define FOPEN_WPLUS_WORK (Expand==BINARY_EXPAND ? "w+" : "w+b")
---
> #     define FOPEN_W_WORK (Expand==BINARY_EXPAND ? "wb" : "w")
> #     define FOPEN_WPLUS_WORK (Expand==BINARY_EXPAND ? "w+b" : "w+")
1039c1039
<                               has_mmap=1
---
>                               has_mmap=0

With RCS directory present: (Oops!)
-----------------------------------

visage:/home/ian/r% rm -f * RCS/*
rm: RCS: is a directory
visage:/home/ian/r% cat > x.c
l1
l2
l3
^D

visage:/home/ian/r% ci x.c
RCS/x.c,v  <--  x.c
enter description, terminated with single '.' or end of file:
NOTE: This is NOT the log message!
>> .
initial revision: 1.1
done

visage:/home/ian/r% ls -l . RCS
..:
total 0
-r--r--r--   1 544      everyone        0 Mar  8 20:10 ,x.c,
drwxr-xr-x   4 544      everyone        0 Mar  8 20:10 RCS

RCS:
total 1
-r--r--r--   1 544      everyone      194 Mar  8 20:10 x._
-r--r--r--   1 544      everyone        0 Mar  8 20:10 x.c,v

visage:/home/ian/r% co x.c
co: RCS/x.c,v:1: unexpected end of file
co aborted

With explicit RCS file: (ok)
----------------------------

visage:/home/ian/r% rm -f * RCS/*
rm: RCS: is a directory
visage:/home/ian/r% cat > x.c
l1
l2
l3
^D
visage:/home/ian/r% ci x.c RCS/x.c,v
RCS/x.c,v  <--  x.c
enter description, terminated with single '.' or end of file:
NOTE: This is NOT the log message!
>> .
initial revision: 1.1
done
visage:/home/ian/r% ls -l . RCS
..:
total 0
drwxr-xr-x   3 544      everyone        0 Mar  8 20:10 RCS

RCS:
total 1
-r--r--r--   1 544      everyone      194 Mar  8 20:10 x.c,v
visage:/home/ian/r% co x.c
RCS/x.c,v  -->  x.c
revision 1.1
done
visage:/home/ian/r% cat x.c
l1
l2
l3

With no RCS directory (ok):
---------------------------

visage:/home/ian/r% rm -f * RCS/*
rm: RCS: is a directory
visage:/home/ian/r% rmdir RCS
visage:/home/ian/r% cat > x.c
l1
l2
l3
visage:/home/ian/r% ci x.c
x.c,v  <--  x.c
enter description, terminated with single '.' or end of file:
NOTE: This is NOT the log message!
>> .
initial revision: 1.1
done
visage:/home/ian/r% ls -l
total 1
-r--r--r--   1 544      everyone      194 Mar  8 20:11 x.c,v
visage:/home/ian/r% co x.c
x.c,v  -->  x.c
revision 1.1
done
visage:/home/ian/r% cat x.c
l1
l2
l3
-- 
         Oooo.    | Ian Lowrey
  .oooO  (   )    | [email-masked]
  (   )   ) /     |
   \ (   (_/      | "All dressed up with no place to go
    \_)           |  On a music box that never stops..."
-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".