summaryrefslogtreecommitdiffstats
path: root/mount/bind.c
diff options
context:
space:
mode:
Diffstat (limited to 'mount/bind.c')
-rw-r--r--mount/bind.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/mount/bind.c b/mount/bind.c
new file mode 100644
index 000000000..4af72a9c3
--- /dev/null
+++ b/mount/bind.c
@@ -0,0 +1,11 @@
+#include <stdio.h>
+#include <sys/mount.h>
+
+main(int argc, char **argv) {
+ int ret;
+
+ ret = mount(argv[1], argv[2], "bind", MS_MGC_VAL, NULL);
+ if (ret)
+ perror("bind");
+ return ret;
+}