8279884: Use better file for cygwin source permission check
Reviewed-by: erikj
This commit is contained in:
parent
c4518e257c
commit
36f41cbe11
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
@ -438,7 +438,9 @@ AC_DEFUN([BASIC_CHECK_DIR_ON_LOCAL_DISK],
|
|||||||
AC_DEFUN_ONCE([BASIC_CHECK_SRC_PERMS],
|
AC_DEFUN_ONCE([BASIC_CHECK_SRC_PERMS],
|
||||||
[
|
[
|
||||||
if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
|
if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
|
||||||
file_to_test="$TOPDIR/LICENSE"
|
# The choice of file here is somewhat arbitrary, it just needs to be there
|
||||||
|
# in the source tree when configure runs
|
||||||
|
file_to_test="$TOPDIR/Makefile"
|
||||||
if test `$STAT -c '%a' "$file_to_test"` -lt 400; then
|
if test `$STAT -c '%a' "$file_to_test"` -lt 400; then
|
||||||
AC_MSG_ERROR([Bad file permissions on src files. This is usually caused by cloning the repositories with a non cygwin hg in a directory not created in cygwin.])
|
AC_MSG_ERROR([Bad file permissions on src files. This is usually caused by cloning the repositories with a non cygwin hg in a directory not created in cygwin.])
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user