From c9e23fd1a6c7595413dc0ea93db2c9936051b51d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aur=C3=A9lien=20Aptel?= Date: Tue, 9 Jul 2013 23:44:16 +0200 Subject: [PATCH] clitar.c: fix_unix_path() now replace / with \ MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Aurélien Aptel Reviewed-by: David Disseldorp Reviewed-by: Andreas Schneider --- source3/client/clitar.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source3/client/clitar.c b/source3/client/clitar.c index 05bd0c36366..ecf5700d35c 100644 --- a/source3/client/clitar.c +++ b/source3/client/clitar.c @@ -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 -- 2.34.1