mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 18:17:09 +00:00
fix error handling in aa-decode
Acked-By: Steve Beattie <sbeattie@ubuntu.com> Looks-Good-By: ;-) Seth Arnold <seth.arnold@gmail.com>
This commit is contained in:
parent
5a026afd9f
commit
0742f72f4f
@ -50,7 +50,7 @@ if [ -n "$1" ]; then
|
||||
e=`echo "$1" | tr -s '[:lower:]' '[:upper:]'`
|
||||
if ! echo "$e" | egrep -q "^[0-9A-F]+$" ; then
|
||||
echo "String should only contain hex characters (0-9, a-f, A-F)"
|
||||
return
|
||||
exit 1
|
||||
fi
|
||||
|
||||
d=`decode $e`
|
||||
|
Loading…
x
Reference in New Issue
Block a user