diff options
author | marc <devnull@localhost> | 1998-05-20 17:05:26 +0000 |
---|---|---|
committer | marc <devnull@localhost> | 1998-05-20 17:05:26 +0000 |
commit | f0d4eed0dbd83837bc3abaf19f0c0957103a0786 (patch) | |
tree | 13e58eddf55ac3878648fb7062089b09f2b6754e /build/pack.c | |
parent | c1b802dfda639c253884252835ca7f8020a56338 (diff) | |
download | rpm-f0d4eed0dbd83837bc3abaf19f0c0957103a0786.tar.gz rpm-f0d4eed0dbd83837bc3abaf19f0c0957103a0786.tar.bz2 rpm-f0d4eed0dbd83837bc3abaf19f0c0957103a0786.zip |
Actually catch errors from readLine()
CVS patchset: 2119
CVS date: 1998/05/20 17:05:26
Diffstat (limited to 'build/pack.c')
-rw-r--r-- | build/pack.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build/pack.c b/build/pack.c index 8f632c66c..ed16dde31 100644 --- a/build/pack.c +++ b/build/pack.c @@ -354,7 +354,10 @@ static StringBuf addFileToTagAux(Spec spec, char *file, StringBuf sb) return NULL; } while (fgets(buf, sizeof(buf), f)) { - expandMacros(&spec->macros, buf); + if (expandMacros(&spec->macros, buf)) { + rpmError(RPMERR_BADSPEC, "line: %s", buf); + return NULL; + } appendStringBuf(sb, buf); } fclose(f); |