aboutsummaryrefslogtreecommitdiff
path: root/src/rc
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2011-07-26 16:58:42 -0500
committerWilliam Hubbs <williamh@gentoo.org>2011-07-26 16:58:42 -0500
commit370e5c775a5072583bc57708bbf2c9e0320b8cd8 (patch)
treea45ca80c1be68ef1549c64db3c516cedb7a3ec56 /src/rc
parentdf1f02ac848a010092df2d3d40b8828051522b4b (diff)
runscript: rename saveDir back to save to fix compile error
Diffstat (limited to 'src/rc')
-rw-r--r--src/rc/runscript.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rc/runscript.c b/src/rc/runscript.c
index 0907ce1a..02d9e7ea 100644
--- a/src/rc/runscript.c
+++ b/src/rc/runscript.c
@@ -1101,7 +1101,7 @@ runscript(int argc, char **argv)
int retval, opt, depoptions = RC_DEP_TRACE;
RC_STRING *svc;
char path[PATH_MAX], lnk[PATH_MAX];
- char *dir, *saveDir = NULL, *saveLnk = NULL;
+ char *dir, *save = NULL, *saveLnk = NULL;
char pidstr[10];
size_t l = 0, ll;
const char *file;
@@ -1133,14 +1133,14 @@ runscript(int argc, char **argv)
if (readlink(argv[1], lnk, sizeof(lnk)-1)) {
dir = dirname(path);
if (strchr(lnk, '/')) {
- saveDir = xstrdup(dir);
+ save = xstrdup(dir);
saveLnk = xstrdup(lnk);
dir = dirname(saveLnk);
- if (strcmp(dir, saveDir) == 0)
+ if (strcmp(dir, save) == 0)
file = basename_c(argv[1]);
else
file = basename_c(lnk);
- dir = saveDir;
+ dir = save;
} else
file = basename_c(argv[1]);
ll = strlen(dir) + strlen(file) + 2;
@@ -1150,7 +1150,7 @@ runscript(int argc, char **argv)
free(service);
service = xstrdup(lnk);
}
- free(saveDir);
+ free(save);
free(saveLnk);
}
if (!service)