Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 May 2012 20:08:17 +0200
From:      Ed Schouten <ed@80386.nl>
To:        jail@FreeBSD.org
Subject:   Breakage on 9
Message-ID:  <CAJOYFBAphvs-M7wR=SeYLS_dWCAv0gPR-oTMz4R-MDtTrdO6Zw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

Today I was bitten by the "jail: unknown parameter: allow.nomount"
bug. It seems this bug is at least more than one month old -- on
9-STABLE! Why hasn't the commit that introduced this bug been backed
out? The code worked before. Now it's broken and we're waiting for an
MFC period? Using a Danish (Dutch?) axe, I was able to at least get my
box working again:

Index: lib/libjail/jail.c
===================================================================
--- lib/libjail/jail.c	(revision 235725)
+++ lib/libjail/jail.c	(working copy)
@@ -890,7 +890,7 @@
 			snprintf(jail_errmsg, JAIL_ERRMSGLEN,
 			    "unknown parameter: %s", jp->jp_name);
 			errno = ENOENT;
-			return (-1);
+			return (0);
 		}
 		snprintf(desc.s, sizeof(desc.s), SJPARAM ".%s", nname);
 		free(nname);

-- 
Ed Schouten <ed@80386.nl>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJOYFBAphvs-M7wR=SeYLS_dWCAv0gPR-oTMz4R-MDtTrdO6Zw>