2022-03-28 20:23:47 +00:00
|
|
|
//go:build !windows
|
2020-05-24 17:30:20 +00:00
|
|
|
// +build !windows
|
2015-08-14 13:57:47 +00:00
|
|
|
|
2024-08-26 21:03:25 +00:00
|
|
|
package fs
|
2015-08-14 13:57:47 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
2024-11-03 12:27:58 +00:00
|
|
|
|
|
|
|
"github.com/restic/restic/internal/restic"
|
2015-08-14 13:57:47 +00:00
|
|
|
)
|
|
|
|
|
2021-05-27 19:29:51 +00:00
|
|
|
func lchown(name string, uid, gid int) error {
|
|
|
|
return os.Lchown(name, uid, gid)
|
|
|
|
}
|
2024-11-03 12:27:58 +00: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
|
|
|
|
}
|