From 897a8cec60e4d944be14c66b231b3d69ef876ea4 Mon Sep 17 00:00:00 2001 From: codemastr Date: Mon, 24 Dec 2001 22:34:02 +0000 Subject: [PATCH] Fixed a DEFAULT_PERMISSIONS bug --- Changes | 1 + Makefile.in | 2 +- src/ircd.c | 2 +- src/s_conf.c | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Changes b/Changes index a10b1d323..1a940ccbe 100644 --- a/Changes +++ b/Changes @@ -1025,3 +1025,4 @@ seen. gmtime warning still there - Fixed some slave work.. return MOD_SUCCESS; in all command modules.. - make install fix - Fixed a last minute bug in win32 +- Fixed a bug affecting DEFAULT_PERMISSIONS reported by ashukmin diff --git a/Makefile.in b/Makefile.in index e31a4ffab..91ba5411d 100644 --- a/Makefile.in +++ b/Makefile.in @@ -213,7 +213,7 @@ install: all $(INSTALL) -m 0700 networks/makenet $(IRCDDIR)/networks $(INSTALL) -m 0600 networks/networks.ndx $(IRCDDIR)/networks $(INSTALL) -m 0700 -d $(IRCDDIR)/doc - $(INSTALL) -m 0600 doc/Authors doc/conf.doc doc/faq doc/tao.of.irc doc/coding-guidelines doc/example.conf doc/features.txt doc/unrealircd.conf.txt doc/commands.txt doc/example.settings doc/services-install-guide doc/unrealircd.doc $(IRCDDIR)/doc + $(INSTALL) -m 0600 doc/Authors doc/conf.doc doc/faq doc/coding-guidelines doc/example.conf doc/features.txt doc/unrealircd.conf.txt doc/commands.txt doc/example.settings doc/services-install-guide doc/unrealircd.doc $(IRCDDIR)/doc $(INSTALL) -m 0700 -d $(IRCDDIR)/aliases $(INSTALL) -m 0600 aliases/*.conf $(IRCDDIR)/aliases $(TOUCH) $(IRCDDIR)/unrealircd.conf diff --git a/src/ircd.c b/src/ircd.c index 4fedf029f..2fa638285 100644 --- a/src/ircd.c +++ b/src/ircd.c @@ -1080,7 +1080,7 @@ int InitwIRCD(argc, argv) initstats(); booted = FALSE; /* Hack to stop people from being able to read the config file */ -#if !defined(_WIN32) && !defined(_AMIGA) && defined(DEFAULT_PERMISSIONS) +#if !defined(_WIN32) && !defined(_AMIGA) && DEFAULT_PERMISSIONS != 0 chmod(CPATH,DEFAULT_PERMISSIONS); #endif init_dynconf(); diff --git a/src/s_conf.c b/src/s_conf.c index 36d7bed1a..7386c6665 100644 --- a/src/s_conf.c +++ b/src/s_conf.c @@ -961,7 +961,7 @@ int _conf_include(ConfigFile *conf, ConfigEntry *ce) ce->ce_varlinenum); return -1; } -#if !defined(_WIN32) && !defined(_AMIGA) && defined(DEFAULT_PERMISSIONS) +#if !defined(_WIN32) && !defined(_AMIGA) && DEFAULT_PERMISSIONS != 0 chmod(ce->ce_vardata, DEFAULT_PERMISSIONS); #endif #ifdef GLOBH