fix: Fix the issue of software link creation errors (#11149)

This commit is contained in:
2025-12-02 10:53:41 +08:00 committed by GitHub
parent 7d92436b92
commit 7aefa34871
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -242,6 +242,8 @@ func (f *FileService) Create(op request.FileCreate) error {
if err := fo.LinkFile(op.LinkPath, op.Path, op.IsSymlink); err != nil {
return err
}
handleDefaultOwn(op.Path)
return nil
}
if err := fo.CreateFileWithMode(op.Path, fs.FileMode(mode)); err != nil {
return err