Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!columbia!rutgers!mit-eddie!PREP.AI.MIT.EDU!rms From: rms@PREP.AI.MIT.EDU (Richard M. Stallman) Newsgroups: comp.emacs Subject: Patch for 18.40 Message-ID: <8703191907.AA27944@EDDIE.MIT.EDU> Date: Thu, 19-Mar-87 14:11:42 EST Article-I.D.: EDDIE.8703191907.AA27944 Posted: Thu Mar 19 14:11:42 1987 Date-Received: Sat, 21-Mar-87 05:53:19 EST Sender: jbs@mit-eddie.MIT.EDU Lines: 20 I'm told that the function getwd, in sysdep.c, needs to be changed as follows for some machines. (This definition of getwd is used on USG systems.) Can you please install this in your copies of 18.40 and verify that it does not break Emacs on your system? char * getwd (pathname) char *pathname; { char *npath; extern char *getcwd (); npath = getcwd (0, MAXPATHLEN); /* On Altos 3068, getcwd can return @hostname/dir, so discard up to first slash. Should be harmless on other systems. */ while (*npath && *npath != '/') npath++; strcpy (pathname, npath); return pathname; }