bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: acl-permissions: Fix test-file-has-acl-2.sh failure on Cygwin


From: Bruno Haible
Subject: Re: acl-permissions: Fix test-file-has-acl-2.sh failure on Cygwin
Date: Mon, 03 Jun 2024 22:05:37 +0200

Hi Ken,

> > In this situation, the "trivial" ACL is not
> >               user::rwx
> >               group::r-x
> >               other::r-x
> > but instead
> >               user::rwx
> >               group::r-x
> >               group:SYSTEM:rwx
> >               group:Administrators:rwx
> >               mask::r-x
> >               other::r-x
> 
> This may be nitpicking, but I think your analysis of the cause of the 
> test failure is somewhat misleading.  The issue is not that the current 
> directory is not under the Cygwin / directory.  The issue is that the 
> current directory was created under a directory that has default ACL 
> entries beyond those that a directory under the Cygwin / directory would 
> normally have.

Yes, and this directory is the /cygdrive/c directory. Since everything is
under this directory, my statement and your statement are equivalent.

> I wonder if Gnulib should similarly change the ACL on the current 
> directory, either after creating the build directory or in the test 
> itself.

The gnulib module 'acl-permissions' is not only used by the tests; it is
primarily used by 'copy-file' and 'supersede', that is, by regular code
part of applications.

Gnulib should not make side effects on the /cygdrive/c directory of a
system so that apps work "better". Rather, the only choice we have is
to accept the way systems are set up, and make the apps work "better"
in this situation.

Bruno






reply via email to

[Prev in Thread] Current Thread [Next in Thread]