summaryrefslogtreecommitdiffstats
path: root/src/zabbix_agent
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-08-28 20:37:37 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-08-28 20:37:37 +0000
commitc447c7bdc5033fd351706a16ceddda7f0c505c3e (patch)
treee9bfb3f246a53f1094a57a70f6037320d2972367 /src/zabbix_agent
parent90195b9488bb8a7ac99543d2e638cf1813579937 (diff)
downloadzabbix-c447c7bdc5033fd351706a16ceddda7f0c505c3e.tar.gz
zabbix-c447c7bdc5033fd351706a16ceddda7f0c505c3e.tar.xz
zabbix-c447c7bdc5033fd351706a16ceddda7f0c505c3e.zip
- changes umask(0) to umask(022) to prevent world-wrtie access (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@2004 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/zabbix_agent')
-rw-r--r--src/zabbix_agent/zabbix_agentd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zabbix_agent/zabbix_agentd.c b/src/zabbix_agent/zabbix_agentd.c
index 77c79cef..d36034b5 100644
--- a/src/zabbix_agent/zabbix_agentd.c
+++ b/src/zabbix_agent/zabbix_agentd.c
@@ -180,7 +180,7 @@ void daemon_init(void)
}
chdir("/");
- umask(0);
+ umask(022);
for(i=0;i<MAXFD;i++)
{