fixed error generated for bad magic

CVS patchset: 206
CVS date: 1996/01/14 19:31:50
This commit is contained in:
ewt 1996-01-14 19:31:50 +00:00
parent 749b978d8b
commit 6447dde417
1 changed files with 1 additions and 2 deletions

View File

@ -28,8 +28,7 @@ int pkgReadHeader(int fd, Header * hdr, int * isSource) {
if (lead.magic[0] != RPMLEAD_MAGIC0 || lead.magic[1] != RPMLEAD_MAGIC1 ||
lead.magic[2] != RPMLEAD_MAGIC2 || lead.magic[3] != RPMLEAD_MAGIC3) {
error(RPMERR_NEWPACKAGE, "only packages with major numbers <= 2 are"
" supported by this version of RPM");
error(RPMERR_BADMAGIC, "file is not an RPM");
return 1;
}