mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
fix(host): allow server directory a symbol link to directory in other
location
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user