Sender: rich AT delorie DOT com Message-ID: <39089981.16E7FAF7@bigfoot.com> Date: Thu, 27 Apr 2000 20:48:17 +0100 From: Richard Dawe X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.14 i586) X-Accept-Language: de,fr MIME-Version: 1.0 To: djgpp-workers AT delorie DOT com Subject: Re: Some questions about porting fileutils 4.0 References: <39081435 DOT E2EDBC04 AT bigfoot DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Hello. Richard Dawe wrote: > 2. src/chgrp.c seems to require lstat(). I looked at the fileutils 3.16 > port and chgrp.c seems unchanged. Since the readme describes chgrp as > being a no-op program, I was wondering how you made it so, Eli? Well, I found out how the lstat() issue was solved - the lstat() function was provided in the file djstart.c. This lstat() calls stat(). The code can be found at the end of the diffs for fileutils 3.16. Sorry about being a bit dopey there. The port seems to be going OK so far - I've got all the programs to build. I've only applied a few of the diffs from fileutils 3.16 port - you seem to have done much of the work for me already Eli. ;) I have one question: in the patch from fileutils 3.16 port for dircolors.c there is a line #ifdef'd on __DJGPP__ that _always_ sets the 'term' variable to "console". In non-DJGPP cases the terminal is obtained from the TERM environment variable. Is there any reason why we shouldn't allow the TERM env var to override "console", e.g. for output redirection? Bye, -- Richard Dawe richdawe AT bigfoot DOT com ICQ 47595498 http://www.bigfoot.com/~richdawe/