Date: Sat, 25 Jul 2009 17:50:56 -0600 From: Jamie Gritton <jamie@FreeBSD.org> To: Michael Butler <imb@protected-networks.net> Cc: freebsd-stable <freebsd-stable@FreeBSD.org> Subject: Re: regression with jexec? Message-ID: <4A6B9A60.90302@FreeBSD.org> In-Reply-To: <4A6B0BD3.6040206@protected-networks.net> References: <4A6B0BD3.6040206@protected-networks.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Michael Butler wrote: > After a clean rebuild ('rm -rf /usr/obj/*') .. > > imb@aaron:/home/imb> uname -a > FreeBSD aaron.protected-networks.net 7.2-STABLE FreeBSD 7.2-STABLE #0: > Sat Jul 25 05:39:55 EDT 2009 > > imb@aaron:/home/imb> jls > JID IP Address Hostname Path > > [ .. ] > > 5 202.12.127.68 db.protected-networks.net > /usr/local/jails/db.protected-networks.net > > imb@aaron:/home/imb> sudo jexec 5 tcsh > jexec: Unable to parse jail ID.: No such file or directory > > Huh? > > imb The symptom in jexec can be fixed by this little patch: Index: usr.sbin/jexec/jexec.c =================================================================== --- usr.sbin/jexec/jexec.c (revision 195879) +++ usr.sbin/jexec/jexec.c (working copy) @@ -248,6 +248,7 @@ if (argc < 2) usage(); if (strlen(argv[0]) > 0) { + errno = 0; jid = (int)strtol(argv[0], NULL, 10); if (errno) err(1, "Unable to parse jail ID."); But the broader problem is malloc. It's leaving errno set to ENOENT when /etc/malloc.conf doesn't exist. This seems like wrong behavior to me. - Jamie
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A6B9A60.90302>