From xemacs-m  Sun Jan 26 09:34:11 1997
Received: from jagor.srce.hr (hniksic@jagor.srce.hr [161.53.2.130])
          by xemacs.org (8.8.4/8.8.4) with ESMTP
	  id JAA08299 for <xemacs-beta@xemacs.org>; Sun, 26 Jan 1997 09:34:05 -0600 (CST)
Received: (from hniksic@localhost)
          by jagor.srce.hr (8.8.4/8.8.4)
	  id QAA18748; Sun, 26 Jan 1997 16:33:45 +0100 (MET)
Sender: hniksic@public.srce.hr
To: xemacs-beta@xemacs.org, larsi@ifi.uio.no, alex@srce.hr
Subject: Most bletcherous realpath() on Digital Unix
X-URL: ftp://gnjilux.cc.fer.hr/pub/unix/util/wget/
X-Attribution: Hrv
X-Face: &}4JQk=L;e.~x+|eo]#DGk@x3~ed!.~lZ}YQcYb7f[WL9L'Z*+OyA\nAEL1M(".[qvI#a2E
 6WYI5>>e7'@_)3Ol9p|Nn2wNa/;~06jL*B%tTcn/XvhAu7qeES0\|MF%$;sI#yn1+y"
From: Hrvoje Niksic <hniksic@srce.hr>
Date: 26 Jan 1997 16:33:44 +0100
Message-ID: <kighgk4lacn.fsf@jagor.srce.hr>
Lines: 34
X-Mailer: Gnus v5.4.1/XEmacs 19.14

The older versions of Digital Unix (alias OSF/1) didn't have realpath
at all, but the version 4.0 includes it.  However, the version they
distribute is hopelessly buggy, and fails when encountering symbolic
links (which should be the whole point of using realpath library
function).

`file-truename' is at C level in XEmacs, calling realpath.  This is
why file-truename doesn't work correctly on Digital Unix 4.0, which is
why you can't read mail with Gnus (the credits go to Lars and Alex).

XEmacs has its own version of realpath which is used when the system
realpath is missing; however, it can't know when a version is buggy.
The following patch to src/s/decosf4-0.h makes `file-truename' behave
well on osf4.0, and Gnus now works:

*** decosf4-0.h.orig    Sun Jan  5 00:05:34 1997
--- decosf4-0.h Sun Jan 26 16:31:14 1997
***************
*** 26,28 ****
--- 26,32 ----
  
  #define SYSTEM_MALLOC
  #define HAVE_RENAME
+ 
+ /* Digital Unix 4.0 has a realpath, but it's buggy.  And I
+    *do* mean buggy. */
+ #undef HAVE_REALPATH


-- 
Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
A: Vi is the God of editors.
B: Emacs is the editor of Gods.

