git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfd627b
)
clitar.c: fix_unix_path() now replace / with \
author
Aurélien Aptel
<aurelien.aptel@gmail.com>
Tue, 9 Jul 2013 21:44:16 +0000
(23:44 +0200)
committer
Andreas Schneider
<asn@samba.org>
Wed, 19 Feb 2014 17:22:27 +0000
(18:22 +0100)
Signed-off-by: Aurélien Aptel <aurelien.aptel@gmail.com>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/client/clitar.c
patch
|
blob
|
history
diff --git
a/source3/client/clitar.c
b/source3/client/clitar.c
index 05bd0c36366dba96a9af57cd9b885a75796ae750..ecf5700d35c00dca1fb8838a24566baead57167a 100644
(file)
--- 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