>From 88ba977b4d4bf2031e04c050aee28a5966326f77 Mon Sep 17 00:00:00 2001
From: Nils Goroll <nils.goroll@uplex.de>
Date: Wed, 12 Oct 2011 21:21:44 +0200
Subject: [PATCH] re-order setpprivs again to avoid SNOCD

(screwed up again due to bogus test case - sorry)
---
 bin/varnishd/mgt_sandbox_solaris.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/bin/varnishd/mgt_sandbox_solaris.c b/bin/varnishd/mgt_sandbox_solaris.c
index 534f609..2f7f0f4 100644
--- a/bin/varnishd/mgt_sandbox_solaris.c
+++ b/bin/varnishd/mgt_sandbox_solaris.c
@@ -220,10 +220,10 @@ mgt_sandbox_solaris_fini(void)
 		    "Child start warning: Waiving privileges failed on %s: errno=%d (%s)", \
 		    #which, errno, strerror(errno));
 
-	SETPPRIV(PRIV_INHERITABLE, inheritable);
-	SETPPRIV(PRIV_EFFECTIVE, effective);
-	SETPPRIV(PRIV_PERMITTED, permitted);
 	SETPPRIV(PRIV_LIMIT, permitted);
+	SETPPRIV(PRIV_PERMITTED, permitted);
+	SETPPRIV(PRIV_EFFECTIVE, effective);
+	SETPPRIV(PRIV_INHERITABLE, inheritable);
 #undef SETPPRIV
 
 	priv_freeset(inheritable);
-- 
1.5.6.5

