]> jfr.im git - irc/rizon/znc.git/commit
Don't use "mkdir" during install
authorUli Schlachter <redacted>
Thu, 3 Nov 2011 07:54:23 +0000 (08:54 +0100)
committerUli Schlachter <redacted>
Sun, 1 Jan 2012 13:48:58 +0000 (14:48 +0100)
commit094d6f358a9ef0f5cd611c19f9826a1f7ba5b2fc
tree6028201a5fbeb68902cc86b90e6693778630252e
parentd082c472e5318eee8b651d709fbcca86464e4c97
Don't use "mkdir" during install

lahwran just showed up on irc and told us that he installed znc, but znc failed
to find any modules. The reason for this was his umask 077 which means that
"make install" installed stuff so that only root can access it.

The solution is do use "install -d" since that makes sure to ignore the
currently set umask.

However, google finds results which say that "install -d" might mess with stuff
of pre-existing directories when it shouldn't, so we must first test if the
directory already exists before calling install. Obviously, this makes our
Makefile a lot more readable. :-(

I didn't have time to test this properly, so stuff might break.

Signed-off-by: Uli Schlachter <redacted>
Conflicts:

modules/Makefile.in
Makefile.in
man/Makefile.in
modules/Makefile.in