mirror of
https://github.com/samba-team/samba.git
synced 2025-09-02 01:49:29 +03:00
clitar.c: fix_unix_path() now replace / with \
Signed-off-by: Aurélien Aptel <aurelien.aptel@gmail.com> Reviewed-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
committed by
Andreas Schneider
parent
dfd627b902
commit
c9e23fd1a6
@ -123,10 +123,10 @@ static char *fix_unix_path (char *path, bool removeprefix)
|
||||
}
|
||||
}
|
||||
|
||||
/* replace \ with / */
|
||||
/* replace / with \ */
|
||||
while (*from) {
|
||||
if (*from == '\\') {
|
||||
*to = '/';
|
||||
if (*from == '/') {
|
||||
*to = '\\';
|
||||
} else {
|
||||
*to = *from;
|
||||
}
|
||||
@ -429,6 +429,7 @@ int cmd_setmode(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* static int send_file(struct archive_entry *entry, */
|
||||
|
||||
/**
|
||||
* cmd_tar - interactive command to start a tar backup/restoration
|
||||
|
Reference in New Issue
Block a user