summaryrefslogtreecommitdiffhomepage
path: root/pkg/p9
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/p9')
-rw-r--r--pkg/p9/local_server/local_server.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/pkg/p9/local_server/local_server.go b/pkg/p9/local_server/local_server.go
index 5b1e97711..7a3e4cffe 100644
--- a/pkg/p9/local_server/local_server.go
+++ b/pkg/p9/local_server/local_server.go
@@ -246,11 +246,7 @@ func (l *local) Symlink(oldname string, newname string, _ p9.UID, _ p9.GID) (p9.
//
// Not properly implemented.
func (l *local) Link(target p9.File, newname string) error {
- if err := os.Link(target.(*local).path, path.Join(l.path, newname)); err != nil {
- return err
- }
-
- return nil
+ return os.Link(target.(*local).path, path.Join(l.path, newname))
}
// Mknod implements p9.File.Mknod.