From: Casper.Dik-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org
To: "Andries E. Brouwer" <Andries.Brouwer-rh8NL+sEX9E@public.gmane.org>
Cc: "Michael Kerrisk (man-pages)"
<mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: realpath(3) bugs
Date: Sat, 05 May 2012 20:34:50 +0200 [thread overview]
Message-ID: <201205051834.q45IYont018249@ucsinet22.oracle.com> (raw)
In-Reply-To: <20120505155054.GA11316@iq>
>I am not sure something needs to be removed. One might write
>"early versions of" when something is no longer true in recent versions.
I've looked through earlier SunOS versions and I didn't find
it n SunOS 3.5 but I did find it in SunOS 4.1.1. The code
simply starts with:
if pathname doesn't start with '/' prepend the current
working directory.
That code looks very much like the earlier SvR4 code; so I think
that if the SunOS manual page says that, it was incorrect as
the code will either fail or it will return an absolute pathname.
(Any error cass the code to return NULL)
Just like the current Solaris realpath(3c) manpage incorrectly
says that realpath() can change your cwd on error; this
cannot happen since Solaris 9 but was not removed)
So if i ever happened in SunOS it may happened in SunOS 4.0,
so I think it is still not correct to claim that "Solaris"
ever didn't return an absolute pathname; the first of
Solaris was SunOS 4.1.2 (Solaris 1.0) and that already
only returned an absolute pathname.
Casper
--
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
prev parent reply other threads:[~2012-05-05 18:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201205051834.q45IYont018249@ucsinet22.oracle.com \
--to=casper.dik-qhclzuegtsvqt0dzr+alfa@public.gmane.org \
--cc=Andries.Brouwer-rh8NL+sEX9E@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox