iwcap: fix reversed umask
SVN-Revision: 30748
This commit is contained in:
parent
448f4696f1
commit
fe090bcf53
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* iwcap.c - A simply radiotap capture utility outputting pcap sig_dumps
|
||||
* iwcap.c - A simply radiotap capture utility outputting pcap dumps
|
||||
*
|
||||
* Copyright 2012 Jo-Philipp Wich <jow@openwrt.org>
|
||||
*
|
||||
|
@ -443,7 +443,7 @@ int main(int argc, char **argv)
|
|||
return 8;
|
||||
|
||||
case 0:
|
||||
umask(0700);
|
||||
umask(0077);
|
||||
chdir("/");
|
||||
freopen("/dev/null", "r", stdin);
|
||||
freopen("/dev/null", "w", stdout);
|
||||
|
|
Loading…
Reference in a new issue