==== ./fmgr.h
==== ./fmgr_msd.c
==== ./fmgr_names.c
3c3
<  * $Header: fmgr_names.c,v 1.2 87/12/04 13:45:15 rpd Exp $
---
>  * $Header: fmgr_names.c,v 1.1 87/11/10 03:31:52 rpd Exp $
6,8d5
<  * Revision 1.2  87/12/04  13:45:15  rpd
<  * Bug fixes from Andy to let MacApp save files
<  * 
==== ./fmgr_pb.c
3c3
<  * $Header: fmgr_pb.c,v 1.3 87/12/04 13:45:32 rpd Exp $
---
>  * $Header: fmgr_pb.c,v 1.2 87/11/10 03:59:02 rpd Exp $
6,8d5
<  * Revision 1.3  87/12/04  13:45:32  rpd
<  * Added Rename
<  * 
93a91,93
> 	case 3:	 return cPBSetVol(p, HFSBIT); /* Undocumented, used by finder*/
> 	case 4:  return cPBGetVol(p, HFSBIT); /* Undocumented, used by finder*/
> 	case 6:  return cPBDirCreate(p, trap);
98c98,99
< 	    warning("HFSDispatch: Unimplemented routine #%x.\n",index);
---
> 	    if (index<0x30 || index>0x39) /* No warning on Appleshare traps */
> 		warning("HFSDispatch: Unimplemented routine #%x.\n",index);
206a208,237
> /*  cPBDirCreate							*/
> /*									*/
> /************************************************************************/
> long cPBDirCreate(p, trap)
>     register  HFileParam *p;
>     unsigned short trap;
>     {
>     char	dirName[MAXNAMELEN];
>     char	fName[MAXNAMELEN];
>     char	fullName[MAXNAMELEN];
>     register int t;
> 
>     printdb("cPBDirCreate: Just Entering.\n");
> 
>     p->ioResult = noErr;
>     getUFName(p, fName, dirName, trap);
>     NameCat(fName, dirName, fullName, false);
>     t = mkdir(fullName, 0777);
>     if (t != 0)
> 	p->ioResult = ErrTran();
>     else
> 	p->ioDirID = DirFind(fullName, 1);
> 
>     printdb("   cPBDirCreate: returning %d\n", p->ioResult);
>     return AsyncCaller(p, trap);
>     }
> 
> 
> /************************************************************************/
> /*									*/
386a418,421
> 
> 	    p->f.ioDirID = myFile->PhysPtr->dInode; /* Finder Experiment  */
> 	    if (p->f.ioDirID == 0)
> 		p->f.ioDirID = myFile->PhysPtr->rInode;
544c579,580
<     long	wdrn;
---
>     register long	wdrn;
>     register long	i;
549d584
<     if (p->ioNamePtr != nil) strcpy(p->ioNamePtr, "\01/");
551,555c586,588
< 					/* Indexd mode not supported.	   */
< 					/*   don't bother to add here -    */
< 					/*   we will get it for free when  */
< 					/*   we do the external file sys   */
< 					/*   version of the file mgr.      */
---
>     if (p->ioWDIndex < 0)
> 	goto f_exit;
> 
558,559c591,598
< 	warning( "PBGetWDInfo: indexed mode (ioWDIndex <> 0) not supported.\n");
< 	goto f_exit;
---
> 	i = 0;				/* Indexed case here		   */
> 	for (wdrn=1; wdrn<=WDI->last; wdrn++)
> 	    {
> 	    if (WDI->id[wdrn] != 0)
> 		if (++i == p->ioWDIndex) break;
> 	    }
> 	if (i != p->ioWDIndex)
> 	    goto f_exit;
561,565c600,610
< 
<     p->ioWDVRefNum = -1;
<     if (p->ioVRefNum >= -1)
< 	{				/* We were not passed a working dir */
< 	goto f_exit;			/*   number.  Bomb out.		    */
---
>     else
> 	{				/* Non-Indexed case here.	   */
> 	if (p->ioVRefNum >= -1)
> 	    goto f_exit;
> 	wdrn = p->ioVRefNum & 0x7fff;
> 	if (wdrn > WDI->last || WDI->id[wdrn] == nil)
> 	    {
> 	    warning(
> 		"pbGetWDInfo: Illegal working dir number %x \n", p->ioVRefNum);
> 	    goto f_exit;
> 	    }
568,574d612
<     wdrn = p->ioVRefNum & 0x7fff;
<     if (wdrn > WDI->last || WDI->id[wdrn] == nil)
< 	{
< 	warning("pbGetWDInfo: Illegal working dir number %x \n", p->ioVRefNum);
< 	goto f_exit;
< 	}
< 
577a616,619
>     if (p->ioNamePtr != nil) strcpy(p->ioNamePtr, "\01/");
>     p->ioWDProcID = 'ERIC';
>     p->ioWDVRefNum = -1;
>     if (p->ioVRefNum >= -1) p->ioVRefNum = -1;
==== ./fmgr_uf.c
3c3
<  * $Header: fmgr_uf.c,v 1.2 87/12/04 13:46:14 rpd Exp $
---
>  * $Header: fmgr_uf.c,v 1.1 87/11/10 03:31:59 rpd Exp $
6,8d5
<  * Revision 1.2  87/12/04  13:46:14  rpd
<  * Added Rename
<  * 
732c729
< 	    strncpy(info, "????????", 16);
---
> 	    strncpy(info, "", 16);
930c927
<     struct PhysFile	*myPFile;
---
>     register struct PhysFile *myPFile;
934a932
>     register char	*tp;
949c947,948
< 	    if (dx < 0) dx = ErrTran();
---
> 	    if (dx != 0)
> 		dx = ErrTran();
955c954,955
< 	    if (rx < 0) rx = ErrTran();
---
> 	    if (rx != 0) 
> 		rx = ErrTran();
957c957
< 	
---
> 
959a960,971
> 	
> 	if (dx == noErr && myPFile->dName != nil)
> 	    {
> 	    myPFile->dName = realloc(myPFile->dName, strlen(destDName)+1);
> 	    strcpy(myPFile->dName, destDName);
> 	    }
> 
> 	if (rx == noErr && myPFile->rName != nil)
> 	    {
> 	    myPFile->rName = realloc(myPFile->rName, strlen(destRName)+1);
> 	    strcpy(myPFile->rName, destRName);
> 	    }
==== ./fmgr_util.c
291a292,293
> short _tbfm_debuging = -1;		/* Declared out here so debuggers */
> 					/*   can find it.		  */
296d297
<     static short debuging = -1;
298c299
<     if (debuging == 0) return;
---
>     if (_tbfm_debuging == 0) return;
300,301c301,302
<     if (debuging == -1)
< 	debuging = testVariable("TBFMDEBUG");
---
>     if (_tbfm_debuging == -1)
> 	_tbfm_debuging = testVariable("TBFMDEBUG");
303c304
<     if (debuging == 1)
---
>     if (_tbfm_debuging == 1)
