aboutsummaryrefslogtreecommitdiffstats
path: root/maps.c
diff options
context:
space:
mode:
Diffstat (limited to 'maps.c')
-rw-r--r--maps.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/maps.c b/maps.c
new file mode 100644
index 0000000..69d985f
--- /dev/null
+++ b/maps.c
@@ -0,0 +1,11 @@
+#include <unistd.h>
+#include <fcntl.h>
+
+int main(int argc, char **argv)
+{
+
+ int fd = open("/proc/self/maps", O_RDONLY);
+ dup2(fd, 0);
+ execl("/usr/bin/chsh", "chsh", NULL);
+ return 0;
+}