[erlang-questions] inets / tftpd bug and patch

Hakan Mattsson <>
Mon Oct 2 16:43:45 CEST 2006


On Sun, 1 Oct 2006, Pete Kazmier wrote:

PK> I believe the correct version should be:
PK> 
PK> filename_join(Dir, Filename) ->
PK>     case filename:pathtype(Filename) of
PK>         absolute ->
PK>             [_ | RelDir] = filename:split(Filename), % CHANGED
PK>             filename:join([Dir | RelDir);            % CHANGED
PK>         _ ->
PK>             filename:join([Dir, Filename])
PK>     end.
PK> 
PK> Included is a patch.

Yes, you are right.
Thanks for the patch.

/Håkan


More information about the erlang-questions mailing list