Merge "Reject input name with collect utility when name length exceeds 235"

This commit is contained in:
Zuul 2022-10-03 13:12:55 +00:00 committed by Gerrit Code Review
commit db1a91064a

View File

@ -620,7 +620,7 @@ while [[ ${#} -gt 0 ]] ; do
max_length=$(expr 255 - 16 - 4) # Padding of timestamp and .tar
if [ ${len} -gt ${max_length} ] ; then
report_error "name must not be longer than ${$max_length} characters" ${FAIL_NAME_TOO_LONG}
report_error "name must not be longer than ${max_length} characters" ${FAIL_NAME_TOO_LONG}
collect_exit ${FAIL_NAME_TOO_LONG}
fi
fi