From 3b870aa9f9865754119e32cf3ff6beb154b4d9df Mon Sep 17 00:00:00 2001 From: Matthew Booth Date: Thu, 28 Oct 2010 15:17:21 +0100 Subject: 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. --- lib/.gitignore | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib') diff --git a/lib/.gitignore b/lib/.gitignore index 3dcbcf7..c76f105 100644 --- a/lib/.gitignore +++ b/lib/.gitignore @@ -132,3 +132,13 @@ /hash-pjw.c /hash-pjw.h /sys_wait.in.h +/getopt.c +/getopt.in.h +/getopt1.c +/getopt_int.h +/inttypes.h +/inttypes.in.h +/xstrtol-error.c +/xstrtol.c +/xstrtol.h +/xstrtoul.c -- cgit