This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: chmod_1, chmod_2, chmod_3 and lrshift_1
- From: "François-Xavier Coudert" <fxcoudert at gmail dot com>
- To: "Jack Howarth" <howarth at bromo dot msbb dot uc dot edu>
- Cc: fortran at gcc dot gnu dot org, paulthomas2 at wanadoo dot fr
- Date: Sat, 5 Aug 2006 18:52:16 +0200
- Subject: Re: chmod_1, chmod_2, chmod_3 and lrshift_1
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=R1MwOMo5tt1YmaqxPRm7umG347I8sgDUEiSERqPwUY/ux+h9YRVvW0GXrU6/t1wKzszhms9ErjSof4USQHr3NaLB1/TWi1kOER9Us0g7HGl4bIT/wQVf4SvdfUIqS7r3MY2nFL76sG3nlbO3Qw2XtFL/pI9YebLKhW9RsNNoeIw=
- References: <20060805163057.C6C79110009@bromo.msbb.uc.edu>
Hi Jack,
The chmod_1, chmod_2, chmod_3, stat_1 and stat_2 tests all also
fail if the testsuite is run through sudo. That is if you compile
any of those test and do...
sudo ./a.out
...they will fail. I don't know what the gcc policy is on this but
these are the first set of tests in gcc to fail on Darwin when the
make check is run from a terminal where the user has done 'sudo csh'.
I thought I had replied to your original mail to the list describing
the problem, but apparently I only meant to do it. So here it is...
Files created under invocation via "sudo" are created with the
original user's GID, which is different from the effective group ID at
execution. I will try to add a special check for that case (sudo
execution) in all these testcases, so that running a "sudo make check"
doesn't show failures.
Unfortunately, I don't have much time right now. I'll have a window of
opportunity in a week, and will try to do it then. I filed PR 28610
(and CCed you) to be sure I don't forget about this.
FX