LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   newline characters in folders (https://www.linuxquestions.org/questions/linux-general-1/newline-characters-in-folders-667338/)

Mirlyn 09-03-2008 01:11 PM

newline characters in folders
 
Greetings

I have an issue with newline characters in both names of files and folders.

Setup:
Windows clients (mix of XP and Server 2003) rsync using cygwin to a Debian Etch box nightly.

Some clients create foldernames with apparently newline characters. ls -l on the linux box shows "folder?". ls -b shows "folder/r".

What is causing these? Is there a character set or something that needs to be defined? It only happens when it creates folders and files, not the contents of the files themselves. If I pre-create the folder/file (sans-gremlin characters) on the target before syncing, it will ignore the existing folder/file and create its own with the character at the end.

Thoughts? Is this a problem on the Windows machine or rsync itself?

Tinkster 09-03-2008 01:33 PM

Hi,

And welcome to LQ!

Never came across an issue like that before, but
one thing springs to mind: Cygwin, on install,
asks you what kind of line-ends to use, Unix or
DOS; what did your guys choose?



Cheers,
Tink

Mirlyn 09-03-2008 01:40 PM

Thanks for the reply!

I don't recall it asking on any of the machines.

Is there a config file to view/change that? The contents of the file have the correct line feeds; its the file and folder names themselves that are screwy. Like the file creation mechanisms are wrong.

Tinkster 09-03-2008 01:44 PM

Quote:

Is there a config file to view/change that?
Sorry, can't answer that: I don't use cygwin, I've only
helped poor windows users install it on the odd occasion.



Cheers,
Tink


All times are GMT -5. The time now is 05:54 PM.