From: Denis Vlasenko Date: Wed, 11 Oct 2006 21:38:33 +0000 (-0000) Subject: hush.c: stop using __FILE__ (bad in out-of-tree builds) X-Git-Tag: 1_4_0~522 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8de82bf84f7311bd74b08d9f4b4d4a6fef4649b9;p=oweals%2Fbusybox.git hush.c: stop using __FILE__ (bad in out-of-tree builds) --- diff --git a/shell/hush.c b/shell/hush.c index 779c9a373..4d78b47a7 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -312,7 +312,8 @@ static char *indenter(int i) static void __syntax(char *file, int line) { bb_error_msg("syntax error %s:%d", file, line); } -#define syntax() __syntax(__FILE__, __LINE__) +// NB: was __FILE__, but that produces full path sometimess, so... +#define syntax() __syntax("hush.c", __LINE__) /* Index of subroutines: */ /* function prototypes for builtins */