1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-27 18:23:09 +02:00

[package] iwcap: fix reversed umask

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30748 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2012-02-27 23:08:15 +00:00
parent 8f9292853c
commit a6b7f73287

View File

@ -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> * Copyright 2012 Jo-Philipp Wich <jow@openwrt.org>
* *
@ -443,7 +443,7 @@ int main(int argc, char **argv)
return 8; return 8;
case 0: case 0:
umask(0700); umask(0077);
chdir("/"); chdir("/");
freopen("/dev/null", "r", stdin); freopen("/dev/null", "r", stdin);
freopen("/dev/null", "w", stdout); freopen("/dev/null", "w", stdout);