aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-26 08:35:06 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-26 08:35:06 +0000
commit875ef853c0f9a3d079206a19decebed6255b26a2 (patch)
tree09437f1c87300f34b5643336e208e88bcdcc5e88
parent50cdfecec3d8a02e956999e9b9b4e16454bb00cb (diff)
downloadpaludis-875ef853c0f9a3d079206a19decebed6255b26a2.tar.gz
paludis-875ef853c0f9a3d079206a19decebed6255b26a2.tar.xz
Show whether sandbox is enabled with --version.
-rw-r--r--src/paludis.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/paludis.cc b/src/paludis.cc
index 75f038e..eacf1f8 100644
--- a/src/paludis.cc
+++ b/src/paludis.cc
@@ -24,6 +24,8 @@
#include "src/query.hh"
#include "src/applets.hh"
#include "src/sync.hh"
+#include "config.h"
+
#include <paludis/paludis.hh>
#include <paludis/util/util.hh>
@@ -257,6 +259,11 @@ main(int argc, char *argv[])
cout << "libebt: " << LIBEBT_VERSION_MAJOR << "." << LIBEBT_VERSION_MINOR
<< "." << LIBEBT_VERSION_MICRO << endl;
+#if HAVE_SANDBOX
+ cout << "sandbox: enabled" << endl;
+#else
+ cout << "sandbox: disabled" << endl;
+#endif
cout << endl;
cout << "Paludis comes with ABSOLUTELY NO WARRANTY. Paludis is free software, and you" << endl;
cout << "are welcome to redistribute it under the terms of the GNU General Public" << endl;