diff -Naupr autodir-0.99.9.orig/src/modules/autohome.c autodir-0.99.9/src/modules/autohome.c --- autodir-0.99.9.orig/src/modules/autohome.c 2007-04-10 06:49:51.000000000 +0200 +++ autodir-0.99.9/src/modules/autohome.c 2008-09-18 17:04:02.000000000 +0200 @@ -629,7 +629,7 @@ static int copy_skel_dir( const char *sr } else if( S_ISDIR( sdent_st.st_mode ) ) { - if( mkdir( ddent, sdent_st.st_mode & S_IRWXU ) == -1 ) + if( mkdir( ddent, sdent_st.st_mode ) == -1 ) { if( errno == EEXIST ) {