Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!ucsd!nosc!cod!hall From: hall@cod.NOSC.MIL (Robert R. Hall) Newsgroups: comp.os.minix Subject: Re: ST-MINIX 1.5.5 "getcwd" library fix Summary: This is incompatitable with patch Keywords: getcwd, libc.a, pwd, bug + patch Message-ID: <1842@cod.NOSC.MIL> Date: 28 Mar 90 16:07:09 GMT References: <2746@ruuinf.cs.ruu.nl> Organization: Naval Ocean Systems Center, San Diego Lines: 35 I tried to apply this patch to lib/posix/getcwd.c only to have patch reject it with a core dump message Since it wasn't that big I edited in the patch manually then I used cdiff to get my version of the cdiff patch and found the line count differ (see enclosed cdiff) I then edited the posted cdiff with the 61 number changed to a 60 and patch now responded with hunk sucessfull. Edwin Kremer would you please check you cdiff command and find why it can't count correctly? Robert R. Hall (hall@nosc.mil) *** p2 Wed Mar 28 07:46:09 1990 --- p1 Wed Mar 28 07:43:01 1990 *************** *** 2,8 **** --- getcwd.c Tue Mar 27 23:14:41 1990 *************** *** 52,57 **** ! --- 52,61 ---- /* Search the parent directory for the current entry */ if ((fd = open(".", O_RDONLY)) == -1) return((char *)NULL); while (!found && read(fd, (char *)&d, DIRECT_SIZE) == DIRECT_SIZE) { --- 2,8 ---- --- getcwd.c Tue Mar 27 23:14:41 1990 *************** *** 52,57 **** ! --- 52,60 ---- /* Search the parent directory for the current entry */ if ((fd = open(".", O_RDONLY)) == -1) return((char *)NULL); while (!found && read(fd, (char *)&d, DIRECT_SIZE) == DIRECT_SIZE) {