moby--moby/pkg
Sebastiaan van Stijn 25ada76437
pkg/archive: Unpack() use 0755 permissions for missing directories
Commit edb62a3ace fixed a bug in MkdirAllAndChown()
that caused the specified permissions to not be applied correctly. As a result
of that bug, the configured umask would be applied.

When extracting archives, Unpack() used 0777 permissions when creating missing
parent directories for files that were extracted.
Before edb62a3ace, this resulted in actual
permissions of those directories to be 0755 on most configurations (using a
default 022 umask).

Creating these directories should not depend on the host's umask configuration.
This patch changes the permissions to 0755 to match the previous behavior,
and to reflect the original intent of using 0755 as default.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-02-17 16:24:52 +01:00
..
aaparser
archive pkg/archive: Unpack() use 0755 permissions for missing directories 2021-02-17 16:24:52 +01:00
authorization pkg/authorization: Fix test failures on macOS 2020-04-08 13:06:50 +03:00
broadcaster
capabilities
chrootarchive pkg/chrootarchive: Skip privileged tests when non-root 2020-12-15 09:47:48 +07:00
containerfs
devicemapper
directory
discovery
dmesg
filenotify
fileutils
fsutils
homedir
idtools Fix userns-remap option when username & UID match 2021-02-10 15:58:34 +00:00
ioutils
jsonmessage
locker
longpath
loopback
mount Separate non-Windows mount code from common code 2020-11-08 23:15:15 +11:00
namesgenerator
parsers
pidfile
platform
plugingetter
plugins
pools
progress
pubsub
reexec
signal
stdcopy
streamformatter
stringid
symlink
sysinfo use containerd/cgroups to detect cgroups v2 2020-11-09 15:00:32 +01:00
system pkg/system: fix compile on darwin (macOS) 2020-11-10 20:49:09 +01:00
tailfile
tarsum
term
truncindex
urlutil
useragent
README.md

README.md

pkg/ is a collection of utility packages used by the Moby project without being specific to its internals.

Utility packages are kept separate from the moby core codebase to keep it as small and concise as possible. If some utilities grow larger and their APIs stabilize, they may be moved to their own repository under the Moby organization, to facilitate re-use by other projects. However that is not the priority.

The directory pkg is named after the same directory in the camlistore project. Since Brad is a core Go maintainer, we thought it made sense to copy his methods for organizing Go code :) Thanks Brad!

Because utility packages are small and neatly separated from the rest of the codebase, they are a good place to start for aspiring maintainers and contributors. Get in touch if you want to help maintain them!