keep file permissions and try to keep user/group on supported systems (fixes #1467)

This commit is contained in:
Stefan Breunig
2017-06-25 09:05:24 +02:00
parent 2d2778eabf
commit 52b042971a
3 changed files with 57 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
// Read, write and edit the config file
// Non-unix specific functions.
// +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris
package fs
// attemptCopyGroups tries to keep the group the same, which only makes sense
// for system with user-group-world permission model.
func attemptCopyGroup(fromPath, toPath string) {}