it was a mode_t which is unsigned. Fix it to be signed...
-Erik
char *dirname (const char *path);
-int make_directory (char *path, mode_t mode, int flags);
+int make_directory (char *path, long mode, int flags);
const char *u_signal_names(const char *str_sig, int *signo, int startnum);
char *dirname (const char *path);
-int make_directory (char *path, mode_t mode, int flags);
+int make_directory (char *path, long mode, int flags);
const char *u_signal_names(const char *str_sig, int *signo, int startnum);
* Also create parent directories as necessary if flags contains
* FILEUTILS_RECUR. */
-int make_directory (char *path, mode_t mode, int flags)
+int make_directory (char *path, long mode, int flags)
{
if (!(flags & FILEUTILS_RECUR)) {
if (mkdir (path, 0777) < 0) {