]> Cypherpunks repositories - gostls13.git/commit
syscall: add missing fs locking in Link, Rename on nacl
authorTim Wright <tenortim@gmail.com>
Wed, 22 Nov 2017 03:11:56 +0000 (19:11 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 22 Nov 2017 03:47:23 +0000 (03:47 +0000)
commita2a1c173d7917e86e2f0a3323676ae29f188593c
treeab1614a6a137a4e991a871609a823b89f8321a70
parent7eb7f8f5a75fcff520b5b93a7831fa7044d86887
syscall: add missing fs locking in Link, Rename on nacl

Per the comments at the head of fs_nacl.go, unexported methods expect
the fs mutex to have been taken by the caller.
This change brings Link and Rename into line with the other exported
functions wrt fs locking.

Fixes #22690

Change-Id: I46d08f7d227f23ff49bb0099d218214364a45e1a
Reviewed-on: https://go-review.googlesource.com/79295
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/syscall/fs_nacl.go