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