Mail Archives: djgpp/1998/03/18/16:20:06
Hi all,
I've been looking into my problem of djgpp rcs not being able to
initialize archive files on network drives. In particular, I'm having
problems on my Win95 box running Maestro's NFS software. The problem
seems to exist with Novel as well.
As suggested I got the patched libc from Tom Demmer's site and
recompiled the rcs tools. Unfortunately, this did not fix my
problem.
The problem shows up when I try to "ci" a file for the first time
or use "rcs -i". The error message is "Permission denied (EACCES)"
on the ",v" file that it is trying to create.
With the help of gdb and a couple of printfs, I seem to have issolated
the problem. The function, chnamemod(), in rcsedit.c is trying
to un_link() a nonexistant file. In my case I am trying to check in
newfile.c for the first time. ci creates ,newfile.c on the NFS drive
just fine. ci tried to un_link newfile.c,v before renaming ,newfile.c
to newfile.c,v, and this failed because the file isn't there.
In my configuration, the call to un_link() is actually a #define
to unlink() which is in libc.a. I'm not really sure if there is
a bug in libc.a per se, but rather a problem with the configuration
of the rcs source code. I wonder if I should change conf.h so
that has_NFS is 1 instead of defined to 0.
Matthew H. Gerlach
- Raw text -