On 06/10/12 01:40, Dmitry Bogatov wrote:
> In my previous patch(not applied yet), I refactored some code,
> but did not fixed mistake in this line:
>
>   sprintf (path, "%s/%s", home, NETRC_FILE_NAME);
>
> Unfortunately, we do not live in a perfect world, and there is OS,
> where separator is different. There is already code for getting
> separator for DOS-like systems, based on parsing `argv0'.
> But it introduce static variables and other ugly things.
>
> Any other, more beatiful solution? I find strange, that GNU project
> deals with this OS zoo, and do not have public portability layer.

The forward slash works as path separator in windows, too. That line
wouldn't work on some "less common" OSs such as VMS, though.



Reply via email to