diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-08-29 15:39:55 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-08-29 15:39:55 +0300 |
commit | 412f9fcb17f7d8080eb379e19f208bd1c863ce77 (patch) | |
tree | 06bc66c1df26875b7d3f471cae755908c8dcec8c /build/build.c | |
parent | 29d53ac70f14750fbff1329c37c832e48f68254a (diff) | |
download | rpm-412f9fcb17f7d8080eb379e19f208bd1c863ce77.tar.gz rpm-412f9fcb17f7d8080eb379e19f208bd1c863ce77.tar.bz2 rpm-412f9fcb17f7d8080eb379e19f208bd1c863ce77.zip |
Fix various cases of build failing due to whitespace in dir/filenames.
Diffstat (limited to 'build/build.c')
-rw-r--r-- | build/build.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/build.c b/build/build.c index 67d3f4efe..697de5164 100644 --- a/build/build.c +++ b/build/build.c @@ -180,11 +180,11 @@ int doScript(Spec spec, int what, const char *name, StringBuf sb, int test) (void) fputs(buildTemplate, fp); if (what != RPMBUILD_PREP && what != RPMBUILD_RMBUILD && spec->buildSubdir) - fprintf(fp, "cd %s\n", spec->buildSubdir); + fprintf(fp, "cd '%s'\n", spec->buildSubdir); if (what == RPMBUILD_RMBUILD) { if (spec->buildSubdir) - fprintf(fp, "rm -rf %s\n", spec->buildSubdir); + fprintf(fp, "rm -rf '%s'\n", spec->buildSubdir); } else if (sb != NULL) fprintf(fp, "%s", getStringBuf(sb)); |