[erlang-questions] inets / tftpd bug and patch

David Hopwood <>
Sun Oct 1 17:07:17 CEST 2006


Pete Kazmier wrote:
> Obviously, I included the wrong patch ... apologies:
> ------------------------------------------------------------------------
> 
> --- lib/inets/src/tftp/tftp_file.erl	Wed May  3 04:24:29 2006
> +++ lib/inets/src/tftp/tftp_file.erl.new	Sat Sep 30 22:35:08 2006
> @@ -269,8 +269,8 @@
>  filename_join(Dir, Filename) ->
>      case filename:pathtype(Filename) of
>  	absolute ->
> -	    [_ | RelDir] = filename:split(Dir),
> -	    filename:join([RelDir, Filename]);
> +	    [_ | RelDir] = filename:split(Filename),
> +	    filename:join([Dir | RelDir);

Missing ']'.

>  	_ ->
>  	    filename:join([Dir, Filename])
>      end.

-- 
David Hopwood <>





More information about the erlang-questions mailing list