diff options
author | Matthew Booth <mbooth@redhat.com> | 2010-10-28 15:17:21 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2010-10-28 16:05:09 +0100 |
commit | 3b870aa9f9865754119e32cf3ff6beb154b4d9df (patch) | |
tree | 850cc2d9d4c3718dec2ea6f052f31924d3ea0283 /m4 | |
parent | f6e12eccb65bef3eb57631e54199d8b1610e7c5c (diff) | |
download | febootstrap-3b870aa9f9865754119e32cf3ff6beb154b4d9df.tar.gz febootstrap-3b870aa9f9865754119e32cf3ff6beb154b4d9df.tar.xz febootstrap-3b870aa9f9865754119e32cf3ff6beb154b4d9df.zip |
Add -u and -g options to febootstrap-supermin-helper
Bash automatically resets euid to uid when it executes. This means that the
effective user id of a program at the point it calls febootstrap-supermin-helper
will be lost if any part of execution chain involved bash. This in turn can
result in:
* the generation of an incorrect checksum, which contains the uid.
* the generation of supermin files with a mixture of owners
The -u and -g options allow the caller to pass in an explicit user and group to
run as. febootstrap-supermin-helper will set(u|g)id as appropriate.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/.gitignore | 4 | ||||
-rw-r--r-- | m4/gnulib-cache.m4 | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/m4/.gitignore b/m4/.gitignore index 97d2c1b..bbef2cd 100644 --- a/m4/.gitignore +++ b/m4/.gitignore @@ -90,3 +90,7 @@ /xvasprintf.m4 /asm-underscore.m4 /sys_wait_h.m4 +/getopt.m4 +/inttypes-pri.m4 +/inttypes.m4 +/xstrtol.m4 diff --git a/m4/gnulib-cache.m4 b/m4/gnulib-cache.m4 index ebb8cc4..3210f5c 100644 --- a/m4/gnulib-cache.m4 +++ b/m4/gnulib-cache.m4 @@ -15,7 +15,7 @@ # Specification in the form of a command-line invocation: -# gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=. --no-libtool --macro-prefix=gl error filevercmp fts full-write hash hash-pjw xalloc xvasprintf +# gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=. --no-libtool --macro-prefix=gl error filevercmp fts full-write hash hash-pjw xalloc xstrtol xvasprintf # Specification in the form of a few gnulib-tool.m4 macro invocations: gl_LOCAL_DIR([]) @@ -27,6 +27,7 @@ gl_MODULES([ hash hash-pjw xalloc + xstrtol xvasprintf ]) gl_AVOID([]) |