1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/archive
Alexander Larsson 5ba2462961 archive: Fix the storing of setuid bits, etc
In commit 3dfc910d77 we changed from
syscall.Chmod() to os.Chmod(), but these take a different form of the
Mode argument. The sycall one takes the raw linux form, wheras
os.Chmod takes the os.FileMode form, and they differ for the higher
bits (setuid, setgid, etc). The raw tar header uses a form which
is compatible with the syscalls, but not the go calls.

We fix this by using hdr.FileInfo() which properly converts the mode
to what go expects.

Docker-DCO-1.1-Signed-off-by: Alexander Larsson <alexl@redhat.com> (github: alexlarsson)
2014-02-18 09:53:30 +01:00
..
archive.go archive: Fix the storing of setuid bits, etc 2014-02-18 09:53:30 +01:00
archive_test.go Add vendored archive/tar that includes xattrs patch 2014-02-17 08:20:21 -07:00
changes.go Add vendored archive/tar that includes xattrs patch 2014-02-17 08:20:21 -07:00
changes_test.go small batch of edits/corrections to comments 2013-12-24 16:40:14 -08:00
diff.go archive: Handle aufs plink hardlinks in ApplyLayer 2014-02-17 20:46:32 +01:00
MAINTAINERS Move archive.go to sub package 2013-10-31 16:57:45 -07:00
stat_linux.go Remove linux specific calls 2014-02-09 04:23:57 -08:00
stat_unsupported.go Remove linux specific calls 2014-02-09 04:23:57 -08:00
wrap.go Add vendored archive/tar that includes xattrs patch 2014-02-17 08:20:21 -07:00