Date: Fri, 27 Mar 2009 11:32:58 +0100 From: Mel Flynn <mel.flynn+fbsd.questions@mailing.thruhere.net> To: freebsd-questions@freebsd.org Cc: Tobias Rehbein <tobias.rehbein@web.de> Subject: Re: [perl] sysopen(CD, "/dev/cd0", O_RDONLY | O_NONBLOCK) fails Message-ID: <200903271132.58872.mel.flynn%2Bfbsd.questions@mailing.thruhere.net> In-Reply-To: <20090326212045.GB3134@sushi.pseudo.local> References: <20090326212045.GB3134@sushi.pseudo.local>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 26 March 2009 22:20:45 Tobias Rehbein wrote: > Hi all. > > I have a perl script which seems to work fine under Linux but fails on > FreeBSD. The Problem is the line: > > sysopen(CD, "/dev/cd0", O_RDONLY | O_NONBLOCK) > > After this line the following evaluates to true: > > $! eq "No such file or directory." If you're running this in a jail, then cd0 is hidden by devfs, hence the ENOENT. You will need to provide a jail specific ruleset, or override devfsrules_jail from /etc/defaults/devfs.rules in /etc/devfs.rules so it applies to all jails without modification to /etc/rc.conf. -- Mel
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903271132.58872.mel.flynn%2Bfbsd.questions>