From 3fc9ecda9a6d1c2a07425460c00269936c74f6ba Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 20 Sep 2011 09:05:06 -0400 Subject: [PATCH] Remove the IsValid check in paths.MakeDir() --- src/paths.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/paths.go b/src/paths.go index 42fbb0c..859c8f2 100644 --- a/src/paths.go +++ b/src/paths.go @@ -1,7 +1,7 @@ // // Armadillo File Manager // Copyright (c) 2010-2011, Robert Sesek -// +// // 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) } -- 2.22.5