aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugofs
diff options
context:
space:
mode:
authorRobert-André Mauchin <[email protected]>2021-01-18 02:35:33 +0100
committerBjørn Erik Pedersen <[email protected]>2021-01-19 17:25:20 +0100
commit07ad283f686904e5835f621d73ed342ba2a48eb3 (patch)
tree6f090908fc70a803442628eba9d1b136e0342892 /hugofs
parent2c8b5d9165011c4b24b494e661ae60dfc7bb7d1b (diff)
downloadhugo-07ad283f686904e5835f621d73ed342ba2a48eb3.tar.gz
hugo-07ad283f686904e5835f621d73ed342ba2a48eb3.zip
build(deps): bump github.com/spf13/afero from 1.4.1 to 1.5.1
Signed-off-by: Robert-André Mauchin <[email protected]>
Diffstat (limited to 'hugofs')
-rw-r--r--hugofs/filter_fs.go4
-rw-r--r--hugofs/noop_fs.go4
-rw-r--r--hugofs/slice_fs.go4
3 files changed, 12 insertions, 0 deletions
diff --git a/hugofs/filter_fs.go b/hugofs/filter_fs.go
index 279a28312..bee4d05d2 100644
--- a/hugofs/filter_fs.go
+++ b/hugofs/filter_fs.go
@@ -137,6 +137,10 @@ func (fs *FilterFs) Chtimes(n string, a, m time.Time) error {
return syscall.EPERM
}
+func (fs *FilterFs) Chown(n string, uid, gid int) error {
+ return syscall.EPERM
+}
+
func (fs *FilterFs) LstatIfPossible(name string) (os.FileInfo, bool, error) {
fi, b, err := lstatIfPossible(fs.fs, name)
if err != nil {
diff --git a/hugofs/noop_fs.go b/hugofs/noop_fs.go
index c3d2f2da5..12b4e937e 100644
--- a/hugofs/noop_fs.go
+++ b/hugofs/noop_fs.go
@@ -80,3 +80,7 @@ func (fs noOpFs) Chmod(name string, mode os.FileMode) error {
func (fs noOpFs) Chtimes(name string, atime time.Time, mtime time.Time) error {
return errNoOp
}
+
+func (fs *noOpFs) Chown(name string, uid int, gid int) error {
+ return errNoOp
+}
diff --git a/hugofs/slice_fs.go b/hugofs/slice_fs.go
index f1682c1b8..fd442ee8f 100644
--- a/hugofs/slice_fs.go
+++ b/hugofs/slice_fs.go
@@ -60,6 +60,10 @@ func (fs *SliceFs) Chtimes(n string, a, m time.Time) error {
return syscall.EPERM
}
+func (fs *SliceFs) Chown(n string, uid, gid int) error {
+ return syscall.EPERM
+}
+
func (fs *SliceFs) LstatIfPossible(name string) (os.FileInfo, bool, error) {
fi, _, err := fs.pickFirst(name)
if err != nil {