[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Make Check on coreutils, darwin failed
From: |
Eric Blake |
Subject: |
Re: Make Check on coreutils, darwin failed |
Date: |
Tue, 10 May 2005 06:35:16 -0600 |
User-agent: |
Mozilla Thunderbird 1.0.2 (Windows/20050317) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Adam Price on 5/9/2005 11:39 PM:
> Making check in touch
> make check-TESTS
> PASS: relative
> 0a1
>> touch: setting times of `/': Permission denied
> FAIL: not-owner
I've noticed that cygwin also tends to fail this test, because the typical
cygwin user installed / themselves (as c:\cygwin) and has write access to
change /. I don't know if there is a better approach to finding a
directory that the user does not have rights to (cygwin will soon have //
appear as a directory with read-only properties, so // might work, but
doesn't generalize well). Perhaps something like this is needed in
tests/touch/not-owner:
if test `stat -c %u /` = `id -u` ; then
echo Skipping because / is owned by user >2
(exit 77); exit 77
fi
group=`stat -c %g /`
for g in `id -G` ; do
if test $group = $g ; then
echo Skipping because / belongs to user's group >2
(exit 77); exit 77
fi
done
- --
Life is short - so eat dessert first!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCgKqD84KuGfSFAYARAuuXAJ0Vo+uBwLnjzUXkK6YGeXN4kef1SwCgipI5
FwdGOXEIQ1a+eZ2lKf5KLuI=
=ZqOw
-----END PGP SIGNATURE-----