Re: [netatalk-admins] Can't stop CR/LF translation...


Subject: Re: [netatalk-admins] Can't stop CR/LF translation...
From: David Welton (davidw@gate.cks.com)
Date: Wed Mar 25 1998 - 20:58:19 EST


On Tue, Mar 24, 1998 at 06:57:05PM -0800, bsmith@h-e.com wrote:

> There are two possible solutions, one would be to prevent the files
> from being typed as "TEXT" to start with. This would depend on the
> software being used to copy the files from the Windows machine to
> the AppleShare server; that is where the file type is being defined
> in this case.

They are using PC Maclan, but I don't really care to delve into
windoze problems.. The software seems broken in other ways as well.

> The other solution is to completely disable netatalk's CR/LF
> translation, which is simply a matter of re-compiling netatalk after
> removing the "-DCRLF" option from etc/afpd/Makefile.

Actually, I went one better (I hope it's seen that way at least!) and
hacked a new command line option into afpd so that you can turn off
CR/LF translation by starting it with '-e'. I did this by adding a
variable in afp_options. I hope this was the right place to put it.

Everything seems to work great now :-)

Anyway, I have attached my diffs for review.

-- 
David Welton                          http://www.efn.org/~davidw 

Debian GNU/Linux - www.debian.org






This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:31:57 EST