summaryrefslogtreecommitdiffstats
path: root/source3/client
diff options
context:
space:
mode:
authorAurélien Aptel <aurelien.aptel@gmail.com>2013-07-09 23:44:16 +0200
committerAndreas Schneider <asn@samba.org>2014-02-19 18:22:27 +0100
commitc9e23fd1a6c7595413dc0ea93db2c9936051b51d (patch)
tree3b1f5c34b763104bab6d103247413603964f6341 /source3/client
parentdfd627b902c8b81346fb8c5fd5f666a70762286a (diff)
downloadsamba-c9e23fd1a6c7595413dc0ea93db2c9936051b51d.tar.gz
samba-c9e23fd1a6c7595413dc0ea93db2c9936051b51d.tar.xz
samba-c9e23fd1a6c7595413dc0ea93db2c9936051b51d.zip
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>
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/clitar.c7
1 files 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