projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27ba218
)
Fail if version or release are empty
author
root
<devnull@localhost>
Tue, 3 Jun 1997 22:02:37 +0000
(22:02 +0000)
committer
root
<devnull@localhost>
Tue, 3 Jun 1997 22:02:37 +0000
(22:02 +0000)
CVS patchset: 1684
CVS date: 1997/06/03 22:02:37
build/spec.c
patch
|
blob
|
history
diff --git
a/build/spec.c
b/build/spec.c
index
1df5390
..
8cf4a38
100644
(file)
--- a/
build/spec.c
+++ b/
build/spec.c
@@
-1278,6
+1278,12
@@
Spec parseSpec(FILE *f, char *specfile, char *buildRootOverride)
s1 = s;
while (*s1 && *s1 != ' ' && *s1 != '\t') s1++;
*s1 = '\0';
+ if (s1 == s) {
+ rpmError(RPMERR_BADSPEC, (tag == RPMTAG_VERSION) ?
+ "Empty version field." :
+ "Empty release field.");
+ return NULL;
+ }
if (tag == RPMTAG_VERSION) {
if (! versionMacroSet) {
versionMacroSet = 1;