Quoting Steve Langasek ([EMAIL PROTECTED]):
> On Wed, Jan 25, 2006 at 06:49:59PM +0100, Peter Eisentraut wrote:
> > tags 333778 + confirmed
> > stop
> 
> > I can confirm that something completely bizarre is going on when a file 
> > name contains double quotes.  I see 'Foo " Bar' being converted to 
> > 'FWT8B4~Q'.  Oddly enough one can access the file just fine.  Anyone 
> > got a clue?  There doesn't seem to be any obvious shell exploit hidden 
> > there, FWIW.
> 
> If you can access the file ok, then the bug title seems to be wrong?
> 
> I assume the name is being mangled for sharing due to concerns over clients
> failing to handle the name correctly.  But I'm not sure that it's for the
> benefit of /Windows/ clients in this case.


Indeed.

Using "mangled name = no" does not show the filename mangled anymore.

So, this is actually more a feature than a bug. I recommend closing
this bug but I prefer getting others advices abou tit.

[EMAIL PROTECTED]:/var/tmp/samba-test> ls -l /var/tmp/samba-test/
total 0
-rw------- 1 root      root         0 2006-01-25 06:45 bar
-rw------- 1 spongebob spongebob    0 2006-01-25 06:45 foo
-rw-rw-r-- 1 bubulle   bubulle      0 2006-01-26 06:38 Foo " Bar
crw-rw---- 1 root      root      4, 0 2006-01-24 19:16 tty0


[public]
.../...
mangled names = yes

(this is the default alue anyway)

[EMAIL PROTECTED]:/var/tmp/samba-test> smbclient \\\\127.0.0.1\\public
-U spongebob
Password:
Domain=[CC-MYKERINOS] OS=[Unix] Server=[Samba 3.0.21a]
smb: \> ls
  .                                   D        0  Thu Jan 26 06:38:32 2006
  ..                                  D        0  Thu Jan 26 06:40:54 2006
  foo                                          0  Wed Jan 25 06:45:01 2006
  bar                                          0  Wed Jan 25 06:45:16 2006
  tty0                                         0  Tue Jan 24 19:16:56 2006
  FWT8B4~Q                                     0  Thu Jan 26 06:38:32 2006

                60675 blocks of size 32768. 29428 blocks available



[public]
.../...
mangled names = no


[EMAIL PROTECTED]:/var/tmp/samba-test> smbclient \\\\127.0.0.1\\public -U 
spongebob
Password:
Domain=[CC-MYKERINOS] OS=[Unix] Server=[Samba 3.0.21a]
smb: \> ls
  .                                   D        0  Thu Jan 26 06:38:32 2006
  ..                                  D        0  Thu Jan 26 06:41:54 2006
  foo                                          0  Wed Jan 25 06:45:01 2006
  bar                                          0  Wed Jan 25 06:45:16 2006
  tty0                                         0  Tue Jan 24 19:16:56 2006
  Foo " Bar                                    0  Thu Jan 26 06:38:32 2006

                60675 blocks of size 32768. 29427 blocks available



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to