summaryrefslogtreecommitdiffstats
path: root/source3/client/clitar.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2014-02-17 11:05:28 +0100
committerAndreas Schneider <asn@samba.org>2014-02-19 18:22:30 +0100
commit75dbb27115ff2d32a69215075cc79bdfe956160f (patch)
tree8c771e441e186699c51951d6855de269a72792f6 /source3/client/clitar.c
parentf58ef3878e0718cd95e09ffbba5dbaa374c2c2f0 (diff)
downloadsamba-75dbb27115ff2d32a69215075cc79bdfe956160f.tar.gz
samba-75dbb27115ff2d32a69215075cc79bdfe956160f.tar.xz
samba-75dbb27115ff2d32a69215075cc79bdfe956160f.zip
s3-clitar: Improve readabilty of tar_send_file().
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
Diffstat (limited to 'source3/client/clitar.c')
-rw-r--r--source3/client/clitar.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/client/clitar.c b/source3/client/clitar.c
index ac69920e0ac..b78d7df2825 100644
--- a/source3/client/clitar.c
+++ b/source3/client/clitar.c
@@ -1091,6 +1091,7 @@ static int tar_send_file(struct tar *t, struct archive_entry *entry)
int err = 0;
int flags = O_RDWR | O_CREAT | O_TRUNC;
mode_t mode = archive_entry_filetype(entry);
+ int rc;
dos_path = PANIC_IF_NULL(talloc_strdup(ctx, archive_entry_pathname(entry)));
fix_unix_path(dos_path, true);
@@ -1103,7 +1104,8 @@ static int tar_send_file(struct tar *t, struct archive_entry *entry)
goto out;
}
- if (make_remote_path(full_path)) {
+ rc = make_remote_path(full_path);
+ if (rc != 0) {
err = 1;
goto out;
}