From mboxrd@z Thu Jan 1 00:00:00 1970 From: Geert Uytterhoeven Subject: Re: [PATCH] selftests/exec: allow shell return code of 126 Date: Mon, 5 Jan 2015 12:35:04 +0100 Message-ID: References: <1420456786-5989-1-git-send-email-drysdale@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: In-Reply-To: <1420456786-5989-1-git-send-email-drysdale-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org> Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: David Drysdale Cc: "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Andreas Schwab , Shuah Khan , Andrew Morton , linux-m68k , "linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" List-Id: linux-api@vger.kernel.org On Mon, Jan 5, 2015 at 12:19 PM, David Drysdale wrote: > When the shell fails to invoke a script because its path name > is too long (ENAMETOOLONG), most shells return 127 to indicate > command not found. However, some systems report 126 (which POSIX > suggests should indicate a non-executable file) for this case, > so allow that too. Thanks, after this patch, the execveat selftest succeeds on m68k with Debian 4.0. > Reported-by: Geert Uytterhoeven > Signed-off-by: David Drysdale Tested-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds