1
0
mirror of https://github.com/golang/go synced 2024-11-18 13:04:46 -07:00
go/src
Joe Tsai d1b1487a64 archive/tar: remove dead code with USTAR path splitting
Convert splitUSTARPath to return a bool rather than an error since
the caller never ever uses the error other than to check if it is
nil. Thus, we can remove errNameTooLong as well.

Also, fold the checking of the length <= fileNameSize and whether
the string is ASCII into the split function itself.

Lastly, remove logic to set the MAGIC since that's already done on
L200. Thus, setting the magic is redundant.

There is no overall logic change.

Updates #12638

Change-Id: I26b6992578199abad723c2a2af7f4fc078af9c17
Reviewed-on: https://go-review.googlesource.com/14723
Reviewed-by: David Symonds <dsymonds@golang.org>
Run-TryBot: David Symonds <dsymonds@golang.org>
2015-09-23 23:55:13 +00:00
..
archive archive/tar: remove dead code with USTAR path splitting 2015-09-23 23:55:13 +00:00
bufio bufio: fix overflow calculation in Scan 2015-09-20 04:46:08 +00:00
builtin
bytes bytes: improve Compare function on amd64 for large byte arrays 2015-08-26 03:52:20 +00:00
cmd cmd/dist: fix build after "go test" argument order change 2015-09-23 23:10:14 +00:00
compress compress/gzip: detect truncated streams 2015-09-23 08:29:13 +00:00
container
crypto crypto/x509: return err if marshalPublicKey fails to marshal an rsa public key 2015-09-18 21:48:10 +00:00
database/sql database/sql: fix typo 2015-09-14 00:20:55 +00:00
debug debug/dwarf: add test for split DWARF 2015-09-15 17:57:56 +00:00
encoding encoding/json: spell "marshaling" and "unmarshaling" consistently 2015-09-23 00:48:35 +00:00
errors
expvar
flag
fmt fmt: allow any type in a format's width argument 2015-09-10 20:53:22 +00:00
go go/printer: avoid stomping on err before checking it 2015-09-21 19:29:26 +00:00
hash hash/crc32: add AMD64 optimized IEEE CRC calculation 2015-09-16 15:42:42 +00:00
html text/template: export isTrue 2015-09-17 23:08:33 +00:00
image image/png: integer underflow when decoding 2015-09-21 23:09:22 +00:00
index/suffixarray
internal runtime,internal/trace: map/slice literals janitoring 2015-09-11 14:03:43 +00:00
io io: add WriteString support to MultiWriter 2015-09-01 04:00:12 +00:00
log
math math/big: factored out an internal accessor method (cleanup), added benchmark 2015-09-23 20:25:59 +00:00
mime mime: fix docs for WordDecoder.Decode 2015-09-10 21:50:17 +00:00
net net: check 'ok' return in dnsmsg when initially packing rr.Header() 2015-09-20 02:55:16 +00:00
os os: document that behavior of Seek on O_APPEND files is not specified 2015-09-23 17:06:02 +00:00
path all: fix some vet-caught formatting errors, mostly but not only in tests 2015-08-21 05:37:36 +00:00
reflect runtime: on map update, don't overwrite key if we don't need to. 2015-09-09 21:06:49 +00:00
regexp regexp: add runnable example to regex.Split 2015-09-23 03:29:32 +00:00
runtime runtime: fix incomplete sentence in comment 2015-09-23 17:05:39 +00:00
sort sort: Fix typo in Stable() comment 2015-08-17 06:58:16 +00:00
strconv strconv: slightly simplified roundShortest; better comments 2015-09-23 21:14:29 +00:00
strings
sync
syscall syscall: implement getwd on Solaris 2015-09-09 19:58:33 +00:00
testing testing/quick: terminate for arbitrary recursive types 2015-08-29 19:23:37 +00:00
text text/template: export isTrue 2015-09-17 23:08:33 +00:00
time time: allow any one- or two-digit day of the month when parsing. 2015-09-10 20:27:53 +00:00
unicode unicode: include rune 0 in RangeTables. 2015-08-24 15:05:48 +00:00
unsafe
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash build: Fix bootstrap.bash for official source tarballs 2015-09-01 19:52:59 +00:00
buildall.bash
clean.bash build: clean current tree in clean.bash 2015-08-05 19:36:15 +00:00
clean.bat
clean.rc
iostest.bash
make.bash make.bash: abort if $GOROOT_BOOTSTRAP == $GOROOT 2015-08-24 03:04:52 +00:00
make.bat
Make.dist
make.rc
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc