diff options
| author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-07-24 15:29:46 +0000 |
|---|---|---|
| committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-07-28 01:03:56 +0200 |
| commit | 18308a6e42b82ad5a6c3ddf46c63c6601b9fac84 (patch) | |
| tree | c07aec3a4de527c3b9a194a3719ff11934fadd31 /testing/micropython/python3.patch | |
| parent | 831eb5589dc9d1ef397f27c9c4e402e82f8bda57 (diff) | |
| download | aports-18308a6e42b82ad5a6c3ddf46c63c6601b9fac84.tar.bz2 aports-18308a6e42b82ad5a6c3ddf46c63c6601b9fac84.tar.xz | |
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'.
Diffstat (limited to 'testing/micropython/python3.patch')
0 files changed, 0 insertions, 0 deletions
