www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/18/16:20:06

Newsgroups: comp.os.msdos.djgpp
From: gerlach AT netcom DOT com (Matthew H. Gerlach)
Subject: Re: initializing RCS files on network drive
Message-ID: <gerlachEq18wK.3x5@netcom.com>
Organization: Netcom On-Line Services
Date: Wed, 18 Mar 1998 20:57:56 GMT
Lines: 31
Sender: gerlach AT netcom16 DOT netcom DOT com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019