vapier 15/08/05 07:15:25 Modified: uname-test.c Log: match on the basename of the file so we can pass in absolute paths to files
Revision Changes Path 1.10 src/patchsets/coreutils/uname-test/uname-test.c file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/coreutils/uname-test/uname-test.c?rev=1.10&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/coreutils/uname-test/uname-test.c?rev=1.10&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/coreutils/uname-test/uname-test.c?r1=1.9&r2=1.10 Index: uname-test.c =================================================================== RCS file: /var/cvsroot/gentoo/src/patchsets/coreutils/uname-test/uname-test.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- uname-test.c 5 Aug 2015 07:14:35 -0000 1.9 +++ uname-test.c 5 Aug 2015 07:15:25 -0000 1.10 @@ -3,6 +3,7 @@ * Distributed under the terms of the GNU General Public License v2 */ +#define _GNU_SOURCE #include <ctype.h> #include <err.h> #include <stdbool.h> @@ -114,6 +115,8 @@ static const char *procinfo_guess_arch(const char *file) { + file = basename(filename); + if (startswith(file, "blackfin")) return "bfin";