Ticket #7056: exec_umask.c

File exec_umask.c, 113 bytes (added by zooey, 14 years ago)

a tiny test exposing the problem - just set the umask to some specific value and, invoking the test, you'll see that it will have been reverted to '022'.

Line 
1#include <unistd.h>
2
3
4int
5main()
6{
7 int ret = execl ("/bin/sh", "sh", "-c", "umask", (char *)0);
8
9 return ret;
10}