]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR go/91621 (libgo/mksysinfo.sh: please avoid test ==)
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 10 Sep 2019 20:32:42 +0000 (20:32 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 10 Sep 2019 20:32:42 +0000 (20:32 +0000)
PR go/91621
    mksysinfo: change test == to test =

    Fixes https://gcc.gnu.org/PR91621

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/194569

From-SVN: r275609

libgo/mksysinfo.sh

index c9dd8d494a95a3291b5d94c1a556fb6f13bf4d37..f086c507e075530af13f8036fb48d5cb51c2fe2e 100755 (executable)
@@ -1127,7 +1127,7 @@ grep '^const _FALLOC_' gen-sysinfo.go |
 # Prefer largefile variant if available.
 # CentOS 5 does not have f_flags, so pull from f_spare.
 statfs=`grep '^type _statfs64 ' gen-sysinfo.go || true`
-if test "$statfs" == ""; then
+if test "$statfs" = ""; then
   statfs=`grep '^type _statfs ' gen-sysinfo.go || true`
 fi
 if ! echo "$statfs" | grep f_flags; then