2022-03-28 16:23:47 -04:00
|
|
|
//go:build !windows
|
2020-05-24 13:30:20 -04:00
|
|
|
// +build !windows
|
2015-08-14 09:57:47 -04:00
|
|
|
|
2024-08-26 17:03:25 -04:00
|
|
|
package fs
|
2015-08-14 09:57:47 -04:00
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"os"
|
2024-11-03 07:27:58 -05:00
|
|
|
|
|
|
|
|
"github.com/restic/restic/internal/restic"
|
2015-08-14 09:57:47 -04:00
|
|
|
)
|
|
|
|
|
|
2021-05-27 15:29:51 -04:00
|
|
|
func lchown(name string, uid, gid int) error {
|
|
|
|
|
return os.Lchown(name, uid, gid)
|
|
|
|
|
}
|
2024-11-03 07:27:58 -05:00
|
|
|
|
|
|
|
|
// nodeRestoreGenericAttributes is no-op.
|
|
|
|
|
func nodeRestoreGenericAttributes(node *restic.Node, _ string, warn func(msg string)) error {
|
|
|
|
|
return restic.HandleAllUnknownGenericAttributesFound(node.GenericAttributes, warn)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// nodeFillGenericAttributes is a no-op.
|
|
|
|
|
func nodeFillGenericAttributes(_ *restic.Node, _ string, _ *ExtendedFileInfo) error {
|
|
|
|
|
return nil
|
|
|
|
|
}
|