Merge pull request #11518 from swordqiu/hotfix/qj-servers-directory-in-symbol-link-dir

fix(host): allow server directory a symbol link to directory in other location
This commit is contained in:
Zexi Li
2021-06-29 10:00:27 +08:00
committed by GitHub
+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")