1
0
mirror of https://github.com/golang/go synced 2024-10-01 13:28:37 -06:00
go/src
Tobias Klauser 760ac1dd33 os: make RemoveAll("") fail silently on unix
CL 146020 changed the behavior of RemoveAll("") on unix systems using
the *at functions to return syscall.EINVAL instead of nil. Adjust the
*at implementation to retain this behavior as is the case on the *noat
systems.

Additionally, also make sure RemoveAll("") on systems not using the "at
functions (e.g. nacl and js/wasm) follow the same behavior (which wasn't
the case previously).

Fixes #28830

Change-Id: I8383c1423fefe871d18ff49134a1d23077ec6867
Reviewed-on: https://go-review.googlesource.com/c/150158
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: roger peppe <rogpeppe@gmail.com>
2018-11-18 16:13:13 +00:00
..
archive
bufio bufio: make Reader.Peek invalidate Unreads 2018-11-13 15:08:13 +00:00
builtin
bytes strings,bytes: use inlineable function trampolines instead of linkname 2018-11-08 20:52:47 +00:00
cmd cmd/vet: remove pkgfact analyzer, left in by mistake 2018-11-17 13:25:36 +00:00
compress
container container/heap: adjust wording in comments 2018-11-13 13:42:59 +00:00
context
crypto crypto/hmac: rename CheckHMAC to ValidHMAC in package docs 2018-11-17 21:29:23 +00:00
database/sql database/sql: add examples for opening and testing a DB pool 2018-11-16 17:17:09 +00:00
debug debug/gosym: use "go build" instead of hand-running asm and link 2018-11-12 20:27:20 +00:00
encoding all: use "reports whether" consistently in the few places that didn't 2018-11-02 22:47:58 +00:00
errors
expvar
flag flag: return a consistent parse error if the flag value is invalid 2018-10-19 03:48:38 +00:00
fmt fmt: avoid allocation when formatting byte slice arguments with verb s 2018-11-14 20:32:15 +00:00
go go/build: do not suggest runtime.Version in comment 2018-11-13 13:35:15 +00:00
hash hash/crc64: use t.Fatalf in TestGolden 2018-10-25 06:32:12 +00:00
html all: use "reports whether" consistently in the few places that didn't 2018-11-02 22:47:58 +00:00
image jpeg: simplify 'x = x op ...' to 'x op= ...' 2018-10-13 11:18:56 +00:00
index/suffixarray
internal internal/cpu: move GODEBUGCPU options into GODEBUG 2018-11-14 21:47:50 +00:00
io
log log: add Logger.Writer method 2018-10-25 23:23:57 +00:00
math all: use "reports whether" consistently in the few places that didn't 2018-11-02 22:47:58 +00:00
mime mime/multipart: check for quoted-printable case insensitively 2018-11-09 05:37:10 +00:00
net net/http: fix typo in the SameSite docs 2018-11-16 16:39:22 +00:00
os os: make RemoveAll("") fail silently on unix 2018-11-18 16:13:13 +00:00
path all: use "reports whether" consistently in the few places that didn't 2018-11-02 22:47:58 +00:00
plugin
reflect reflect: add comment for String method of Kind struct 2018-11-16 14:29:14 +00:00
regexp all: use "reports whether" consistently in the few places that didn't 2018-11-02 22:47:58 +00:00
runtime runtime: don't use thread local storage before it is set up on iOS 2018-11-17 20:33:30 +00:00
sort
strconv strconv: add comment explaining bounded shift in formatBits 2018-10-15 21:45:52 +00:00
strings strings,bytes: use inlineable function trampolines instead of linkname 2018-11-08 20:52:47 +00:00
sync all: use "reports whether" consistently in the few places that didn't 2018-11-02 22:47:58 +00:00
syscall runtime: correct ABI information for all functions 2018-11-12 20:27:18 +00:00
testdata
testing testing: add example to package doc 2018-11-16 16:49:09 +00:00
text text/template/parse: simplify Tree.pipeline 2018-10-29 12:20:11 +00:00
time time: add a missing comma in the documentation of Time 2018-11-08 18:02:11 +00:00
unicode
unsafe cmd/compile: assume unsafe pointer arithmetic generates non-nil results 2018-11-14 21:01:36 +00:00
vendor/golang_org/x x/net/route: use libc calls on Darwin 2018-11-14 22:39:08 +00:00
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash build: clear GO111MODULE during make.bash etc 2018-11-16 18:54:22 +00:00
make.bat build: clear GO111MODULE during make.bash etc 2018-11-16 18:54:22 +00:00
Make.dist
make.rc build: clear GO111MODULE during make.bash etc 2018-11-16 18:54:22 +00:00
naclmake.bash
nacltest.bash
race.bash cmd,runtime: enable race detector on arm64 2018-11-13 16:57:22 +00:00
race.bat
run.bash build: clear GO111MODULE during make.bash etc 2018-11-16 18:54:22 +00:00
run.bat build: clear GO111MODULE during make.bash etc 2018-11-16 18:54:22 +00:00
run.rc build: clear GO111MODULE during make.bash etc 2018-11-16 18:54:22 +00:00