mkdir: fix permissions on 64-bit platforms
authorTimo Teras <timo.teras@iki.fi>
Fri, 10 Feb 2012 07:55:24 +0000 (09:55 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 23 Feb 2012 02:22:25 +0000 (03:22 +0100)
commitaf36ba206f7cf0eef77a82af741766a2d03c51ad
treef0ef45fd3278b46b04c9baa932756a4e3aa8cd09
parentcfcb1dac83c9e18a06a07f0b212f6701bb87c2ad
mkdir: fix permissions on 64-bit platforms

sizeof(long) != sizeof(mode_t), this causes the compare in
bb_make_directory of (long)-1 != (mode_t)-1 to fail and mess up
the permissions of final directory by doing chmod((mode_t) -1).

Signed-off-by: Timo Teras <timo.teras@iki.fi>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/mkdir.c