Problems with getwd() on V.4.2 with UFS file system?

Steve Ralston sralston at srwic.uucp
Thu Nov 29 17:58:40 AEST 1990


I seem to have stumbled across a problem while running some RCS programs
(Revision Control System) on a system running UNIX V.4.2 OS.  The system
is a NCR PC486/Microchannel 33 MHz running a BETA version of NCR UNIX
System V, Release 4 Version 2, if that info is applicable.  These are RCS
binaries compiled on a SCO ODT system, which would have been my first guess
as root cause of the problem.

The strange thing is that all worked fine UNTIL I reinstalled the OS using
a (faster?) UFS root file system, instead of the s5 (S51K) root file system
which I had been using.  The error returned by the RCS `ci` (check-in)
program looks something like:

	ci error: can't build current directory path
	ci aborted
	ci error: can't find semaphore file RCS/,<name>,

Looking thru the RCS source code, the fatality appears to hinge on the
following snippet of C code in ci.c:

                    if (getwd(pathbuf)==NULL)
                        faterror("Can't build current directory path");

So it appears that the call to getwd() works for a S51K file system, but
does NOT work (returns NULL) for a UFS file system.  Ideas, anyone?
--
Steve Ralston						sralston at srwic.UUCP
235 N Zelta						voice: 316-686-2019
Wichita, KS 67206			..!uunet!ncrlnk!ncrwic!srwic!sralston



More information about the Comp.unix.sysv386 mailing list