From 5f0c241987f31b2cbf1c6ba2146dcca065973b0d Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 18 Nov 2007 11:23:10 -0600 Subject: POSIX shell does not specify meaning of source operation Just use '.' operator instead. Oops. Signed-off-by: Dan McGee --- lib/libalpm/trans.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libalpm/trans.c') diff --git a/lib/libalpm/trans.c b/lib/libalpm/trans.c index 7e3cb60e..50e346d9 100644 --- a/lib/libalpm/trans.c +++ b/lib/libalpm/trans.c @@ -538,10 +538,10 @@ int _alpm_runscriptlet(const char *root, const char *installfn, _alpm_log(PM_LOG_DEBUG, "executing %s script...\n", script); if(oldver) { - snprintf(cmdline, PATH_MAX, "source %s %s %s %s", + snprintf(cmdline, PATH_MAX, ". %s %s %s %s", scriptpath, script, ver, oldver); } else { - snprintf(cmdline, PATH_MAX, "source %s %s %s", + snprintf(cmdline, PATH_MAX, ". %s %s %s", scriptpath, script, ver); } _alpm_log(PM_LOG_DEBUG, "%s\n", cmdline); -- cgit v1.2.3-24-g4f1b