mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
![]() - Errors sent to the walker callback functions were ignored. This meant that one could get a panic when calling methods on a nil FileInfo object. For example when the file did not exists any more. - Lstat calls inside walker callback are reduntant because walker already calls Lstat and passes the result to the callback. - Error returned from filepath.Rel() can never be EACCES because it compares strings and does not care about actual files. - If Matched() returns error then ValidateContextDirectory() must return error. Currently it still kept walking although the outcome was already known. - Function will now fail in case of unknown error(not EACCES nor ENOENT). Previous implementation did not make a clear decision about this (but panicked because of the issues above). Signed-off-by: Tõnis Tiigi <tonistiigi@gmail.com> (github: tonistiigi) |
||
---|---|---|
.. | ||
daemon.go | ||
http.go | ||
jsonmessage.go | ||
jsonmessage_test.go | ||
progressreader.go | ||
random.go | ||
stdcopy.go | ||
streamformatter.go | ||
streamformatter_test.go | ||
timeoutconn.go | ||
timeoutconn_test.go | ||
tmpdir.go | ||
tmpdir_unix.go | ||
utils.go | ||
utils_test.go |