]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add a Google-only workaround for an ancient mktemp
authorStan Shebs <stanshebs@google.com>
Wed, 7 Mar 2018 15:46:50 +0000 (07:46 -0800)
committerStan Shebs <stanshebs@google.com>
Wed, 7 Mar 2018 15:46:50 +0000 (07:46 -0800)
scripts/check-installed-headers.sh

index 3384e1c3e7632be3020a006c8fc0a9443543d97c..e3c52eadf0551ad39b4f04d3eb2f7e77d052ea7e 100644 (file)
@@ -45,12 +45,15 @@ fi
 case "$1" in
     (c)
         lang_modes="$c_modes"
-        cih_test_c=$(mktemp ${TMPDIR-/tmp}/cih_test_XXXXXX.c)
+       # GOOGLE ONLY: Through an unfortunate combination of circumstances,
+       # the mktemp used here may be as old as 6.12 from 2008, which does
+       # not like having an underscore instead of a dot.
+        cih_test_c=$(mktemp ${TMPDIR-/tmp}/cih_test.XXXXXX.c)
         already="$skip_obsolete_type_check"
     ;;
     (c++)
         lang_modes="$cxx_modes"
-        cih_test_c=$(mktemp ${TMPDIR-/tmp}/cih_test_XXXXXX.cc)
+        cih_test_c=$(mktemp ${TMPDIR-/tmp}/cih_test.XXXXXX.cc)
         # The obsolete-type check can be skipped for C++; it is
         # sufficient to do it for C.
         already="*"