NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/51875: [PATCH] tests/usr.bin/grep/...: portability fixes
>Number: 51875
>Category: bin
>Synopsis: [PATCH] tests/usr.bin/grep/...: portability fixes
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jan 14 13:30:00 +0000 2017
>Originator: Ngie Cooper
>Release: 7.0.2
>Organization:
>Environment:
n/a
>Description:
The attached patch does the following 2 things to ensure improved portability:
1. Doesn't assume that uname output is in /bin/sh ([un]fortunately uname can be overridden on FreeBSD, which means that the binary branding might not match the OS branding). Create a bogus temporary file instead.
2. Sort the output from grep, as not all filesystems might presenting the output in the same way.
>How-To-Repeat:
>Fix:
Home |
Main Index |
Thread Index |
Old Index