Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rice!hsdndev!spdcc!rbraun From: rbraun@spdcc.COM (Rich Braun) Newsgroups: comp.unix.sysv386 Subject: NFS rename bug? Message-ID: <6900@spdcc.SPDCC.COM> Date: 15 Mar 91 01:53:09 GMT Organization: Kronos Inc., Waltham, Mass. Lines: 29 The following program doesn't work under SCO Unix 3.2.2 with the current revision of NFS (1.0, I think?): main() { FILE *fp, *fopen(); int err; fp = fopen ("A", "w"); fclose (fp); err = rename ("A", "B"); printf ("err=%d, errno=%d\n", err, errno); } It creates A and renames it to B just fine if the filesystem is local, but fails with error code EBUSY if the filesystem (of the working directory) is remote. Looking at the NFS calls made over the network, I observe an NFS_GETATTR executed but no NFS_RENAME. The same program runs under other Unix systems just fine. To observe this symptom in an existing product, try running RCS under SCO Unix with an RCS directory located on another system. It won't work unless you patch out the rename call. Is this a known problem? Can I get a fix? -rich