A. Wilcox 18308a6e42 main/paxmark: follow POSIX with 'return' vs 'exit'
The 'return' builtin is used for functions and dot scripts only:
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#return

This means that paxmark has undefined behaviour.  When /bin/sh is
bash, an error is output:

/usr/sbin/paxmark: line 32: return: can only `return' from a function or sourced script

This commit replaces 'return' with POSIX standard 'exit'.
2017-07-28 01:03:56 +02:00
..