Skip to content

Commit 03f1180

Browse files
committed
chown requires root
1 parent 89812c9 commit 03f1180

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package/src/synoedit/file_utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func SaveFile(file string, data string) {
7272
logError(err.Error())
7373
}
7474
// set owner and group id
75-
f.Chown(int(stat.Uid), int(stat.Gid))
75+
// f.Chown(int(stat.Uid), int(stat.Gid))
7676
f.Sync()
7777

7878
err = os.Rename(file+".tmp", file) // atomic

0 commit comments

Comments
 (0)