[distcc] _3632_0: No such file or directory

Martin Pool mbp at sourcefrog.net
Thu Oct 21 00:16:34 GMT 2004


On 20 Oct 2004, Perochon Sebastien <Sebastien.Perochon at mmarelli-se.com> wrote:
> As distcc is used under cygwin and so windows too, it will be fine that
> distcc read fine files in UNIX and files in MS-DOS formats and not just UNIX
> as in 2.16...
> 
> So, could someone please write a patch for next distcc release to parse
> correctly hosts file both in UNIX and MS-DOS format ? It will be great for
> cygwin users...
> I have made one that seems working fine:
> 
> In the file "hosts.c", function "dcc_parse_hosts", I have added '\r'
> wherever necessary as following:
> 
>         if (where[0] == '#') {
>             do
>                 where++;
>             while (where[0] != '\r' && where[0] != '\n' && where[0] !=
> '\0');
>             continue;
>         }
> 
> and
> 
> 	token_len = strcspn(where, " #\t\r\n\f");

Thanks, taken.  Nice catch.

--
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.samba.org/archive/distcc/attachments/20041021/7175d068/attachment.bin


More information about the distcc mailing list