Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sLkVu-00GM9Y-2Z for pgsql-committers@arkaria.postgresql.org; Mon, 24 Jun 2024 14:17:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sLkVs-009k1m-Af for pgsql-committers@arkaria.postgresql.org; Mon, 24 Jun 2024 14:17:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sLkVr-009k1e-Tz for pgsql-committers@lists.postgresql.org; Mon, 24 Jun 2024 14:17:44 +0000 Received: from mail-yb1-xb2b.google.com ([2607:f8b0:4864:20::b2b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sLkVj-003Jl8-NZ for pgsql-committers@lists.postgresql.org; Mon, 24 Jun 2024 14:17:42 +0000 Received: by mail-yb1-xb2b.google.com with SMTP id 3f1490d57ef6-e02c4168e09so4085569276.2 for ; Mon, 24 Jun 2024 07:17:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dunslane-net.20230601.gappssmtp.com; s=20230601; t=1719238653; x=1719843453; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=C3exu0NZTaOUmGgFDmCh0ju+rjvihyZ0tvZHMHbV1yA=; b=YLcsgmcuuyHjN3oX4mMgFNGhXQo326aGXOeGjIqFgq1HHD2K7SfSMtPTfkjCWZMkYG 99E+MHrw8pTNaBNyb2yu6j2Fk/1mdiYNt8ouCZg6uRfOaC30e+FABaEWkUEdJm9yO2mU TuvI8a0cHkhJaUbMemERIenvILnfrQr3BMCD7tcl8dQr16IEWogvS+Br++ogpUDmuVHo shW7T6dp7ToFCv3YczHsbiM3G4AsoORMsjHATebRGbfz/ICtvpp+IDZVQBLsVWaMGotR cz3bkhpVR9NFfbEbfxaDMjVbhFKjMw75gMMTFY/zxDAiq/P7HcRAW7/Lce3cOwxxXrl9 ylKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719238653; x=1719843453; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=C3exu0NZTaOUmGgFDmCh0ju+rjvihyZ0tvZHMHbV1yA=; b=rM4aL50wZdaTfflowmwtFda94c9LpD+T5aBplC52xqSs4vo2A9XowQ1t6aAPGBK/GT 0Zui/ZIU623BTdBxc4nTzBmMPGM3lqz3ZYjRQ1qm8hghYIYcUbVkfKEsvdkh/D/GsbFn SlNHHFbcAmgl1J8YA2E9AIOd6dqo4i211ytkadR5r+TlL69ANJLG8nK5AJg5CLQhTfSW S8CJR1y8aSIRh+HBsuQoh98zDVxaDnNDTU7ufnWfJI6BCK34dw5YvLv9sHafBus3Q9kt mm2FT4xr3Lv6HoZX1C5zNc8JM0Lc5jnr4zzwkUFcZjkbAkgeXgWbn/7Ybz7VjXvRxguG iGFg== X-Gm-Message-State: AOJu0YxJ1eMW6ATlPnTF7tvM8jJ36wTflzD4uJH2bp5wgQhRwjvKdBaT E9GpEhY3ub62HfngAmwL5Z5CCnk5KU9BsxbDNVWe9Z3cwaxV0zd5vhsre3jUyIdpJykn74zFd8l j X-Google-Smtp-Source: AGHT+IEpQYBLVVi37IwuUPWTMX+vWNUMyguP6/2iT/GjdDO99mmn1FYhMGKpG6FzOAB1WjOKJKkTVA== X-Received: by 2002:a25:8742:0:b0:e02:b4fe:e757 with SMTP id 3f1490d57ef6-e0303fc0fd6mr4340457276.50.1719238653322; Mon, 24 Jun 2024 07:17:33 -0700 (PDT) Received: from ?IPV6:2605:a601:9180:9800::2bb? ([2605:a601:9180:9800::2bb]) by smtp.googlemail.com with ESMTPSA id 3f1490d57ef6-e02e623dd75sm3260945276.21.2024.06.24.07.17.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Jun 2024 07:17:32 -0700 (PDT) Message-ID: Date: Mon, 24 Jun 2024 10:17:32 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pgsql: Skip some permissions checks on Cygwin To: Noah Misch Cc: pgsql-committers@lists.postgresql.org References: <20240624010311.0b.nmisch@google.com> From: Andrew Dunstan Content-Language: en-US Autocrypt: addr=andrew@dunslane.net; keydata= xsBNBE7KWFkBCAClridxur2AIc7eW2AR7izbfp3EnNefie2HbLF0izW5Ik5UjX2HBXBx4syI gY6b0ugohXrr274+baoAlvSbq6cAoQuEVrk5IZFzt20b1Xkx65FwGSEj526yiKLocqkJceSq Xr9xcA5SGY+FZv441chh5SU92v4q6z+6LPpoHOh97ptAVXZYNTtU0LevyvD5lja0TzbvJm6C eFXitJfnm1pLEr0DGJCR/iUOl/N62Kh4855zZC7NHIjQHPOvV5Stz/l5ilDhvGVk+xkXFPys SjZoUr1rXhYLpiyi5sR0X9FHXT0KnGuz1F5ERO7ZTLSSQ6fJwPj6gOk9K+vvoKvoeql5ABEB AAHNJEFuZHJldyBEdW5zdGFuIDxhbmRyZXdAZHVuc2xhbmUubmV0PsLAmwQTAQgARQIbAwIX gAIZAQULCQgHAgMiAgEGFQoJCAsCBBYCAwECHgcWIQTkPlhGHfx8v0RpFaWZ+n/LWfw7gQUC ZFlxxwUJGVGAbgAKCRCZ+n/LWfw7gXikB/9ZdcUy6CTBFIIuL/bVsc1eLEW/gJBjJBF6HxNY xgEkAgXAp4Lg4A5U+QB9GouFr7+GYxF0BU4h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1sn2ZPs In-Reply-To: <20240624010311.0b.nmisch@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-06-23 Su 9:03 PM, Noah Misch wrote: > On Thu, Jun 13, 2024 at 12:12:29PM +0000, Andrew Dunstan wrote: >> Skip some permissions checks on Cygwin >> >> These are checks that are already skipped on other Windows systems. >> skip "unix-style permissions not supported on Windows", 2 >> - if ($windows_os); >> + if ($windows_os || $Config::Config{osname} eq 'cygwin'); >> - skip "group access not supported on Windows", 3 if ($windows_os); >> + skip "group access not supported on Windows", 3 >> + if ($windows_os || $Config::Config{osname} eq 'cygwin'); > Cygwin does support Unix-style permissions, so I'm not following the rationale > for this change. Can you say more? It seems to have some difficulties with group permissions in some cases. I improved the error message a bit, and got a bunch that all look like this: build/testrun/initdb/001_initdb/log/regress_log_001_initdb:*main::STDERR/home/Administrator/postgresql/build/testrun/initdb/001_initdb/data/tmp_test_qlhf/data_group/global/6303 mode must be 0640, not 0600 build/testrun/initdb/001_initdb/log/regress_log_001_initdb:*main::STDERR/home/Administrator/postgresql/build/testrun/initdb/001_initdb/data/tmp_test_qlhf/data_group/global/pg_control mode must be 0640, not 0600 build/testrun/initdb/001_initdb/log/regress_log_001_initdb:*main::STDERR/home/Administrator/postgresql/build/testrun/initdb/001_initdb/data/tmp_test_qlhf/data_group/global/pg_filenode.map mode must be 0640, not 0600 build/testrun/initdb/001_initdb/log/regress_log_001_initdb:*main::STDERR/home/Administrator/postgresql/build/testrun/initdb/001_initdb/data/tmp_test_qlhf/data_group/base/5 mode must be 0750, not 0000000000000000000000000000000000000700 build/testrun/initdb/001_initdb/log/regress_log_001_initdb:*main::STDERR/home/Administrator/postgresql/build/testrun/initdb/001_initdb/data/tmp_test_qlhf/data_group/base/5/112 mode must be 0640, not 0600 build/testrun/initdb/001_initdb/log/regress_log_001_initdb:*main::STDERR/home/Administrator/postgresql/build/testrun/initdb/001_initdb/data/tmp_test_qlhf/data_group/base/5/113 mode must be 0640, not 0600 build/testrun/initdb/001_initdb/log/regress_log_001_initdb:*main::STDERR/home/Administrator/postgresql/build/testrun/initdb/001_initdb/data/tmp_test_qlhf/data_group/base/5/1247 mode must be 0640, not 0600 build/testrun/initdb/001_initdb/log/regress_log_001_initdb:*main::STDERR/home/Administrator/postgresql/build/testrun/initdb/001_initdb/data/tmp_test_qlhf/data_group/base/5/1247_fsm mode must be 0640, not 0600 build/testrun/initdb/001_initdb/log/regress_log_001_initdb:*main::STDERR/home/Administrator/postgresql/build/testrun/initdb/001_initdb/data/tmp_test_qlhf/data_group/base/5/1247_vm mode must be 0640, not 0600 build/testrun/initdb/001_initdb/log/regress_log_001_initdb:*main::STDERR/home/Administrator/postgresql/build/testrun/initdb/001_initdb/data/tmp_test_qlhf/data_group/base/5/1249 mode must be 0640, not 0600 Apparently there's some issue with the group None. I don't mind digging further if you think it might be worthwhile, but it seemed to me that since we didn't mind too much skipping these checks on native Windows we wouldn't mind on Cygwin either. Up to now we haven't been covering Cygwin with TAP tests, and I'd like to change that. cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com