fix(host): allow server directory a symbol link to directory in other

location
This commit is contained in:
Qiu Jian
2021-06-29 00:01:19 +08:00
parent 79865d12ef
commit 7765ec0e3b
+1 -1
View File
@@ -259,7 +259,7 @@ func (m *SGuestManager) IsGuestDir(f os.FileInfo) bool {
if !regutils.MatchUUID(f.Name()) {
return false
}
if !f.Mode().IsDir() {
if !f.Mode().IsDir() && f.Mode()&os.ModeSymlink == 0 {
return false
}
descFile := path.Join(m.ServersPath, f.Name(), "desc")