diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2010-09-21 14:33:25 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-09-22 14:48:28 -0400 |
commit | 43f7cfb86f2f405e5cf3f78b4f883cd70fe451e3 (patch) | |
tree | 6b5f236c9960863645603ae1321e8c2da2248d27 /ini/ini_config_ut.c | |
parent | 67c9f9b4a1db45159e710c152deb3d12319bea35 (diff) | |
download | ding-libs-43f7cfb86f2f405e5cf3f78b4f883cd70fe451e3.tar.gz ding-libs-43f7cfb86f2f405e5cf3f78b4f883cd70fe451e3.tar.xz ding-libs-43f7cfb86f2f405e5cf3f78b4f883cd70fe451e3.zip |
Build all of the ding-libs from the root
This changes our approach from having independent tarballs to
having a single, monolithic tarball for all of the libraries
Diffstat (limited to 'ini/ini_config_ut.c')
-rw-r--r-- | ini/ini_config_ut.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ini/ini_config_ut.c b/ini/ini_config_ut.c index a1ac52c..79c4738 100644 --- a/ini/ini_config_ut.c +++ b/ini/ini_config_ut.c @@ -1503,6 +1503,7 @@ int main(int argc, char *argv[]) { int error = EOK; char *srcdir = NULL; + char *rundir = NULL; if ((argc > 1) && (strcmp(argv[1], "-v") == 0)) verbose = 1; @@ -1510,7 +1511,9 @@ int main(int argc, char *argv[]) srcdir = getenv("srcdir"); if(srcdir) { - if(chdir(srcdir) != 0) { + rundir = malloc(strlen(srcdir)+4*sizeof(char)); + sprintf(rundir, "%s/ini", srcdir); + if(chdir(rundir) != 0) { error = errno; printf("Failed to change directory, error %d\n", error); return error; |