Fix xx_path() - return check from mkdir() is incorrect.
commitfcc43cfbe34f3e8039c5e1364fc327f3d7b88b12
authorJeremy Allison <jra@samba.org>
Mon, 17 Jun 2013 23:16:31 +0000 (17 16:16 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 18 Jun 2013 00:41:10 +0000 (18 02:41 +0200)
tree5dc72b92f0a9f55d5b632b3c2f7d4d1ea3931bd5
parentd924da9bc82bbb9f088eb15ac58377e2a1ae3a58
Fix xx_path() - return check from mkdir() is incorrect.

This is very old code, but mkdir() fails with -1, not 0.
Only print the error message is mkdir failed with anything
other than EEXIST.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
source3/lib/util.c