[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-dev
Subject:    [gentoo-dev] [PATCH python-utils-r1 4/4] Exit with 127 when banned command is called
From:       Michał Górny <mgorny () gentoo ! org>
Date:       2015-07-25 10:37:44
Message-ID: 1437820664-28757-5-git-send-email-mgorny () gentoo ! org
[Download RAW message or body]

Exit with code 127 (used by shell as 'command not found') when banned
command is used. Probably doesn't make any difference but looks nicer.
---
 eclass/python-utils-r1.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index 2584f3e..5944f03 100644
--- a/eclass/python-utils-r1.eclass
+++ b/eclass/python-utils-r1.eclass
@@ -896,7 +896,7 @@ python_wrapper_setup() {
 			cat >"${workdir}"/bin/${x} <<__EOF__
 #!/bin/sh
 echo "${x} is not supported by ${EPYTHON}" >&2
-exit 1
+exit 127
 __EOF__
 			chmod +x "${workdir}"/bin/${x} || die
 		done
-- 
2.4.6


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic