Michael Butler wrote:

After a clean rebuild ('rm -rf /usr/obj/*') ..

i...@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

i...@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

i...@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
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Reply via email to