diff options
| author | Denys Vlasenko <dvlasenk@redhat.com> | 2011-03-08 14:07:33 +0100 |
|---|---|---|
| committer | Denys Vlasenko <dvlasenk@redhat.com> | 2011-03-08 14:07:33 +0100 |
| commit | abb11fca1bcd7932d14c911d63fb7c6c347dcbcd (patch) | |
| tree | 219ca2f09a7f8d7c310aca9456624a7f37b8716b /src/include/abrtlib.h | |
| parent | 077b157218254437185b5cb9d0267df72a918b79 (diff) | |
| download | abrt-abb11fca1bcd7932d14c911d63fb7c6c347dcbcd.tar.gz abrt-abb11fca1bcd7932d14c911d63fb7c6c347dcbcd.tar.xz abrt-abb11fca1bcd7932d14c911d63fb7c6c347dcbcd.zip | |
make fork_execv_on_steroids capable of setting env vars too
Before, it could only unset them.
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src/include/abrtlib.h')
| -rw-r--r-- | src/include/abrtlib.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/include/abrtlib.h b/src/include/abrtlib.h index 435c4def..f64046d9 100644 --- a/src/include/abrtlib.h +++ b/src/include/abrtlib.h @@ -170,12 +170,17 @@ enum { EXECFLG_SETGUID = 1 << 7, EXECFLG_SETSID = 1 << 8, }; -/* Returns pid */ +/* + * env_vec: list of variables to set in environment (if string has + * "VAR=VAL" form) or unset in environment (if string has no '=' char). + * + * Returns pid. + */ #define fork_execv_on_steroids abrt_fork_execv_on_steroids pid_t fork_execv_on_steroids(int flags, char **argv, int *pipefds, - char **unsetenv_vec, + char **env_vec, const char *dir, uid_t uid); /* Returns malloc'ed string. NULs are retained, and extra one is appended |
