[Samba] LF vs CRLF (Was: Mapping a network drive to a Windows Drive Letter)

Daniel Eischen eischen at vigrid.com
Wed Jan 17 11:53:27 GMT 2007

On Wed, 17 Jan 2007, Wolfgang Ratzka wrote:

> stuart.jamieson at dstintl.com schrieb:
>> We have this working.
>> however
>> Some developers edit files using "windows editors"  and when they then copy
>> them to the  Windows Drive Letter  which is mapped to a Unix machine, the
>> resultant file  is full of  ^M  characters..... build breaks..... and so on
>> Until now we have been telling users to run "dos2unix"  beforehand,  but
>> somebody told me  that "Samba"  can handle this if properly configured ?
>> Is this possible ?    If so can somebody please help me  ?
> This cannot be done. Samba would need to decide for every file whether it
> is DOS text, that needs to be recoded, or a binary file, which must not be
> touched.

Do you use a source code management tool like CVS for your files?
We use CVS and have configured it to check for DOS files (and other
things) upon commit.  In our case we've set it up to disallow the
commit and force the developer to fix the problem(s).  If you are
using an SCM tool, perhaps you could get it to do something similar
or even automatically do the conversion for you.


More information about the samba mailing list