Re: regression with jexec?
- From: Michael Butler <imb@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 25 Jul 2009 21:06:34 -0400
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jamie Gritton wrote:
Michael Butler wrote:
imb@aaron:/home/imb> sudo jexec 5 tcsh
jexec: Unable to parse jail ID.: No such file or directory
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.");
Thanks - this certainly cures the effect.
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.
Seems like a POLA violation to me,
imb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)
iEYEARECAAYFAkprrBoACgkQQv9rrgRC1JIImwCdG2hjH00hKOzMRUHEqfXwu8FS
O6UAoJL/2iZf/Nz0Pp84q0p+RDkNIM+1
=iBx1
-----END PGP SIGNATURE-----
_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: regression with jexec?
- From: Kostik Belousov
- Re: regression with jexec?
- References:
- regression with jexec?
- From: Michael Butler
- Re: regression with jexec?
- From: Jamie Gritton
- regression with jexec?
- Prev by Date: Re: regression with jexec?
- Next by Date: Re: status of flash9/flash10 support in RELENG_7 ?
- Previous by thread: Re: regression with jexec?
- Next by thread: Re: regression with jexec?
- Index(es):
Relevant Pages
|