Loading commands/filesystem/mkdir.cpp +1 −1 Changes for commands/filesystem/mkdir.cpp: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -85,7 +85,7 @@ namespace fresh { namespace cmd { struct stat st; if(stat(cur.c_str(),&st)==0){ if(!S_ISDIR(st.st_mode)){ std::cerr << "mkdir: cannot create directory '" << path << "': Not a directory" << std::endl; std::cerr << "mkdir: cannot create directory '" << cur << "': Not a directory" << std::endl; return false; } continue; Loading commands/filesystem/modeutil.h +1 −1 Changes for commands/filesystem/modeutil.h: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -66,7 +66,7 @@ namespace fresh { namespace mode { switch(spec[i]){ case 'u': who|=S_ISUID|S_IRWXU; break; case 'g': who|=S_ISGID|S_IRWXG; break; case 'o': who|=S_IRWXO; break; case 'o': who|=S_ISVTX|S_IRWXO; break; default: who|=S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO; } ++i; Loading Loading
commands/filesystem/mkdir.cpp +1 −1 Changes for commands/filesystem/mkdir.cpp: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -85,7 +85,7 @@ namespace fresh { namespace cmd { struct stat st; if(stat(cur.c_str(),&st)==0){ if(!S_ISDIR(st.st_mode)){ std::cerr << "mkdir: cannot create directory '" << path << "': Not a directory" << std::endl; std::cerr << "mkdir: cannot create directory '" << cur << "': Not a directory" << std::endl; return false; } continue; Loading
commands/filesystem/modeutil.h +1 −1 Changes for commands/filesystem/modeutil.h: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -66,7 +66,7 @@ namespace fresh { namespace mode { switch(spec[i]){ case 'u': who|=S_ISUID|S_IRWXU; break; case 'g': who|=S_ISGID|S_IRWXG; break; case 'o': who|=S_IRWXO; break; case 'o': who|=S_ISVTX|S_IRWXO; break; default: who|=S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO; } ++i; Loading