[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/45289: Using pkg_add command from pkgsrc on Solaris 10 zones
the command mkdir /usr/pkg should fail with two errors - EEXIST and EROFS.
Regarding of POSIX XSH Section 2.3 Error Numbers
there is no precedence if more than one error occurs:
"If more than one error occurs in processing a function call, any one of
the possible errors may be returned, as the order of detection is
The EROFS is correct error and this behaviour is POSIX compliant.
Please, correct me if I am wrong.
Joerg Sonnenberger <joerg%britannica.bec.de@localhost> napsal dne 24.08.2011
> The following reply was made to PR pkg/45289; it has been noted by GNATS.
> From: Joerg Sonnenberger <joerg%britannica.bec.de@localhost>
> To: gnats-bugs%NetBSD.org@localhost
> Subject: Re: pkg/45289: Using pkg_add command from pkgsrc on Solaris 10
> Date: Wed, 24 Aug 2011 16:34:24 +0200
> On Wed, Aug 24, 2011 at 11:55:00AM +0000, tlusty%vse.cz@localhost wrote:
> > The pkg_add should not try to create existing directories. The
> > of EEXIST error is not enough in this case.
> Just to make sure:
> mkdir /usr/pkg
> fails with EROFS on Solaris if /usr/pkg already exists and the
> filesystem it is on is read-only? If yes, please fill a bug with Solaris
> first as this is a serious POSIX compliance issue.
Main Index |
Thread Index |