aboutsummaryrefslogtreecommitdiff
path: root/src/debug
diff options
context:
space:
mode:
authorDavid du Colombier <0intro@gmail.com>2015-06-10 22:32:14 +0200
committerDavid du Colombier <0intro@gmail.com>2015-06-11 05:47:07 +0000
commitbd8e3d028eeca723bb37f72c6d513e32c374af73 (patch)
tree97fb6d84ada0eade990c22d9b77cd50c98ffac65 /src/debug
parentd574b59fc71e52ac7feead94348ee61ef8d16a1c (diff)
downloadgo-bd8e3d028eeca723bb37f72c6d513e32c374af73.tar.xz
os: fix error returned by dirstat on Plan 9
When the Stat or Fstat system calls return -1, dirstat incorrectly returns ErrShortStat. However, the error returned by Stat or Fstat could be different. For example, when the file doesn't exist, they return "does not exist". Dirstat should return the error returned by the system call. Fixes #10911. Fixes #11132. Change-Id: Icf242d203d256f12366b1e277f99b1458385104a Reviewed-on: https://go-review.googlesource.com/10900 Run-TryBot: David du Colombier <0intro@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/debug')
0 files changed, 0 insertions, 0 deletions