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.
Summary: It's not possible to reference a file or folder with a semi-colon it its name...
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Tools (show other bugs)
Version: 4.1.6
Hardware: All All
: P5 minor (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-05 11:54 UTC by Bernard Kerckenaere
Modified: 2018-10-18 06:37 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
Comment 2 Amit Kumar 2018-10-18 06:35:22 UTC
(In reply to Bernard Kerckenaere from comment #0)
How you created path or file with semicolon?
# touch file1;_5
-bash: _5: command not found
#

Can you please provide exact filename,directory names and smbclient command run with them.
Comment 3 Bernard Kerckenaere 2018-10-18 06:37:50 UTC
> touch "file1;_5"