Bug 10589 - It's not possible to reference a file or folder with a semi-colon it its name through the smbclient command line (-c) interface.
It's not possible to reference a file or folder with a semi-colon it its name...
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Tools
4.1.6
All All
: P5 minor
: ---
Assigned To: Andrew Bartlett
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-05 11:54 UTC by Bernard Kerckenaere
Modified: 2015-08-04 13:39 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernard Kerckenaere 2014-05-05 11:54:36 UTC
Bug first seen on 3.6.3, also validated on 4.1.6

Escaping the semi-colon doesn't work either.

What I've tried:
smbclient //server/share -c 'cd "/path;with;semi-colon"; put "file" "file"'
smbclient //server/share -c 'put "file;with;semi-colon" "file"'
smbclient //server/share -c 'cd "/path\;with\;semi-colon"; put "file" "file"'
smbclient //server/share -c 'put "file\;with\;semi-colon" "file"'
smbclient //server/share -c 'cd "/path\\;with\\;semi-colon"; put "file" "file"'
smbclient //server/share -c 'put "file\\;with\\;semi-colon" "file"'

Proposed solution: parse "\;" as literal ";"
Comment 1 pieter.declerck 2015-08-04 13:39:36 UTC
Hi All,

I have just hit the same issue...

Any update on this?

Kind regards,

Pieter