public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* realpath(3) bugs
@ 2012-05-04 11:22 Casper.Dik-QHcLZuEGTsvQT0dZR+AlfA
       [not found] ` <201205041122.q44BMDEO002270-Og0DlWfCjE/25RUcvsgne1aTQe2KTcn/@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Casper.Dik-QHcLZuEGTsvQT0dZR+AlfA @ 2012-05-04 11:22 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA



For some reason, many of the realpath() manual pages  (BSD, Linux) have
words to the following effect:

	Solaris may return a relative pathname when the path argument is relative.

I have looked through the Solaris source files and have found no
such bug reported or fixed; the implementation from at least 1997 and
beyond certainly doesn't have this problem and even the older versions
prepend getcwd() or chdir() to dirname and run getcwd() in that
directory.

Solaris does have a system call which may return relative pathnames:
resolvepath().  I believe that that function may have confused earlier 
writers of realpath() manual pages and this was later copied without 
verifying that fact.

realpath() existed in Solaris 2.0 as it came from SVr4.0 and even at that 
time i t returned the full, non-relative path.


Casper Dik (Solaris Engineering)

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-05-05 22:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-04 11:22 realpath(3) bugs Casper.Dik-QHcLZuEGTsvQT0dZR+AlfA
     [not found] ` <201205041122.q44BMDEO002270-Og0DlWfCjE/25RUcvsgne1aTQe2KTcn/@public.gmane.org>
2012-05-04 22:54   ` Michael Kerrisk (man-pages)
     [not found]     ` <CAKgNAkgjjKXx_Aw5iF_Phe7c7ixpqtfLSiV6fkTttN5ge4CGww-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-05-05  0:06       ` Andries E. Brouwer
2012-05-05  7:34         ` Casper.Dik-QHcLZuEGTsvQT0dZR+AlfA
     [not found]           ` <201205050734.q457Y2AC002399-Og0DlWfCjE/25RUcvsgne1aTQe2KTcn/@public.gmane.org>
2012-05-05 15:50             ` Andries E. Brouwer
2012-05-05 18:10               ` Casper.Dik-QHcLZuEGTsvQT0dZR+AlfA
     [not found]                 ` <201205051810.q45IAU9K000837-Og0DlWfCjE/86v54HqmmKFaTQe2KTcn/@public.gmane.org>
2012-05-05 22:14                   ` Andries E. Brouwer
2012-05-05 18:34               ` Casper.Dik-QHcLZuEGTsvQT0dZR+AlfA

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox