pkgsrc-Bugs archive

[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 following reply was made to PR pkg/45289; it has been noted by GNATS.

From: Zdenek Tlusty <tlusty%vse.cz@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: gnats-admin%netbsd.org@localhost,
        pkg-manager%netbsd.org@localhost,
        pkgsrc-bugs%netbsd.org@localhost
Subject: Re: pkg/45289: Using pkg_add command from pkgsrc on Solaris 10 zones
Date: Wed, 24 Aug 2011 23:09:06 +0200

 Hello Joerg,
 
 the command mkdir /usr/pkg should fail with two errors - EEXIST and EROFS.
 Regarding of POSIX XSH Section 2.3 Error Numbers
 (http://pubs.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_03.html)
  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
 undefined."
 
 The EROFS is correct error and this behaviour is POSIX compliant.
 
 Please, correct me if I am wrong.
 
 Best Regards,
 
 Zdenek
 
 Joerg Sonnenberger <joerg%britannica.bec.de@localhost> napsal dne 24.08.2011
 16:35:02:
 
 > 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
 > Cc:
 > Subject: Re: pkg/45289: Using pkg_add command from pkgsrc on Solaris 10
 zones
 > 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
 handling
 >  > 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.
 >
 >  Joerg
 >
 


Home | Main Index | Thread Index | Old Index