Skip to content

Commit 7aefa34

Browse files
authored
fix: Fix the issue of software link creation errors (#11149)
1 parent 7d92436 commit 7aefa34

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

agent/app/service/file.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,8 @@ func (f *FileService) Create(op request.FileCreate) error {
242242
if err := fo.LinkFile(op.LinkPath, op.Path, op.IsSymlink); err != nil {
243243
return err
244244
}
245+
handleDefaultOwn(op.Path)
246+
return nil
245247
}
246248
if err := fo.CreateFileWithMode(op.Path, fs.FileMode(mode)); err != nil {
247249
return err

0 commit comments

Comments
 (0)