summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2016-02-16 10:08:38 +0100
committerAlexander Larsson <alexl@redhat.com>2016-02-16 10:08:38 +0100
commit9647339d694e2f5779d2a25ee741db1190fb4077 (patch)
tree41f8d8e846b4f241900143772ed81349f398a0c0
parent5d5f8e96145cc399bff0363f7ca529000fc669d0 (diff)
downloadbubblewrap-9647339d694e2f5779d2a25ee741db1190fb4077.tar.gz
Add more usage docs
-rw-r--r--build-root.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/build-root.c b/build-root.c
index d0540a0..46694e4 100644
--- a/build-root.c
+++ b/build-root.c
@@ -44,7 +44,15 @@ usage ()
{
fprintf (stderr, "usage: %s [OPTIONS...] COMMAND [ARGS...]\n\n", argv0);
- fprintf (stderr, "TODO....\n"
+ fprintf (stderr,
+ " --help Print this help\n"
+ " --version Print version\n"
+ " --unshare-ipc Create new ipc namesapce\n"
+ " --unshare-pid Create new pid namesapce\n"
+ " --unshare-net Create new network namesapce\n"
+ " --unshare-uts Create new uts namesapce\n"
+ " --chdir DIR Change directory to DIR in the sandbox\n"
+ " --mount-bind SRC DEST Bind mount the host path SRC on DEST in the sandbox\n"
);
exit (1);
}
@@ -430,7 +438,7 @@ main (int argc,
if (argc == 0)
usage ();
- __debug__(("Creating xdg-app-root dir\n"));
+ __debug__(("Creating build-root dir\n"));
uid = getuid ();
gid = getgid ();
@@ -630,7 +638,7 @@ main (int argc,
/* We can't pass regular LD_LIBRARY_PATH, as it would affect the
setuid helper aspect, so we use _LD_LIBRARY_PATH */
- if (getenv("_LD_LIBRARY_PATH"))
+ if (getenv ("_LD_LIBRARY_PATH"))
{
xsetenv ("LD_LIBRARY_PATH", getenv("_LD_LIBRARY_PATH"), 1);
xunsetenv ("_LD_LIBRARY_PATH");