REPOST: Problems with Mac files?

Benjamin Riefenstahl Benjamin.Riefenstahl at epost.de
Mon Aug 9 11:00:51 GMT 2004


Hi Ashley,


"Ashley M. Kirchner" <ashley at pcraft.com> writes:
>     Does anyone have an answer to my post a few days ago?  Here's the
>     archived post:

>    Today I installed samba-3.0.5 on a Fedora1 machine, and mounted
>    one of the server shares and tried to read it. 

I am not sure, but I don't think that Linux' smbfs is part of Samba, I
though it was an independent effort, isn't it?

>    Much to my surprise, I found files that are being listed like
>    this:
>
> -rwxr-xr-x  1 root root      0 May 13 16:30 Icon?*
> -rwxr-xr-x  1 root root  25649 Aug 23  2000 webslide151.gif*
> -rwxr-xr-x  1 root root  57619 Mar 26 08:22 ???webslide1581.JPG*
> -rwxr-xr-x  1 root root  26132 Mar 26 08:22 webslide1631.JPG*
> -rwxr-xr-x  1 root root  67711 Aug 18  1999 webslide176.gif*
> -rwxr-xr-x  1 root root  70559 Mar 26 08:22 webslide1771.JPG*
> -rwxr-xr-x  1 root root  80792 Mar 26 08:23 ???webslide1851.JPG*

You are seeing "sanitized" output from "ls."  Try "man ls" to find
options that make wired characters show up, like
"--show-control-chars" or "--quoting-style=..."  It may also help to
pipe the "ls" output through "cat" or "od" so that "ls" doesn't assume
that it has to protect the terminal from wierd file names.

E.g. the name of that "Icon?" file really ends with a carriage return
character ('\r' in C), that is the normal convention for custom
directory icons on MacOS, so it is not surprising.  I don't know what
the other filenames are, though.


benny



More information about the samba-technical mailing list