Enforce length limits on PKG and NAME fields in pkginfo
This commit is contained in:
@@ -188,6 +188,8 @@ E_BAD_SECTION_END=44
|
||||
E_UNPACKAGED_FILES=45
|
||||
E_BAD_VERSION=46
|
||||
E_BAD_LIBS=47
|
||||
E_SVR4_PKG_OVERFLOW=48
|
||||
E_SVR4_NAME_OVERFLOW=49
|
||||
|
||||
error_txt[$E_BAD_FILE]="File not found"
|
||||
error_txt[$E_PATCH_FAILED]="Patch failed"
|
||||
@@ -204,6 +206,8 @@ error_txt[$E_BAD_SECTION_END]="Found end of section marker before section begin!
|
||||
error_txt[$E_UNPACKAGED_FILES]="Unpackaged files found in stage area!"
|
||||
error_txt[$E_BAD_VERSION]="Version field overflow"
|
||||
error_txt[$E_BAD_LIBS]="config.log defines obsolete libraries!"
|
||||
error_txt[$E_SVR4_PKG_OVERFLOW]="PKG field exceeds 9 char limit"
|
||||
error_txt[$E_SVR4_NAME_OVERFLOW]="NAME field exceeds 256 char limit"
|
||||
|
||||
#####################################################
|
||||
# Helper functions
|
||||
|
||||
Reference in New Issue
Block a user