From: ewt Date: Fri, 1 Mar 1996 01:59:03 +0000 (+0000) Subject: creates a default path which is used for running scripts X-Git-Tag: tznext/4.11.0.1.tizen20130304~11516 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c0dae8e3cf5e0f8083e700167ee8ce8d1d6e0873;p=tools%2Flibrpm-tizen.git creates a default path which is used for running scripts CVS patchset: 444 CVS date: 1996/03/01 01:59:03 --- diff --git a/lib/uninstall.c b/lib/uninstall.c index bfcd3fe..083ea52 100644 --- a/lib/uninstall.c +++ b/lib/uninstall.c @@ -15,6 +15,9 @@ #include "rpmerr.h" #include "rpmlib.h" +static char * SCRIPT_PATH = "export PATH=/sbin:/bin:/usr/sbin:/usr/bin:" + "/usr/X11R6/bin\n"; + enum fileActions { REMOVE, BACKUP, KEEP }; static int sharedFileCmp(const void * one, const void * two); @@ -278,6 +281,7 @@ int runScript(char * prefix, Header h, int tag) { error(RPMERR_SCRIPT, "error creating file for (un)install script"); return 1; } + write(fd, SCRIPT_PATH, strlen(SCRIPT_PATH)); write(fd, script, strlen(script)); /* run the script via /bin/sh - just feed the commands to the