Remove the IsValid check in paths.MakeDir()
authorRobert Sesek <rsesek@bluestatic.org>
Tue, 20 Sep 2011 13:05:06 +0000 (09:05 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Tue, 20 Sep 2011 13:05:06 +0000 (09:05 -0400)
src/paths.go

index 42fbb0c5b0423dea165038cc70b73b85f79e7a53..859c8f22d9a86ffd1ee7044d445520fdcd7cbb8f 100644 (file)
@@ -1,7 +1,7 @@
 //
 // Armadillo File Manager
 // Copyright (c) 2010-2011, Robert Sesek <http://www.bluestatic.org>
-// 
+//
 // This program is free software: you can redistribute it and/or modify it under
 // the terms of the GNU General Public License as published by the Free Software
 // Foundation, either version 3 of the License, or any later version.
@@ -101,12 +101,5 @@ func MakeDir(target string) os.Error {
        if !checkInJail(target) {
                return os.NewError("Path outside of jail")
        }
-
-       dir, _ := path.Split(target)
-       isValid, _ := IsValid(dir)
-       if !isValid {
-               return os.NewError("Containing directory not valid")
-       }
-
        return os.Mkdir(target, 0644)
 }