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

This commit is contained in:
Qiu Jian
2021-06-29 00:03:49 +08:00
parent 353f21ffa2
commit 79f8013376
+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")