s3-clitar: Improve readabilty of tar_send_file().
authorAndreas Schneider <asn@samba.org>
Mon, 17 Feb 2014 10:05:28 +0000 (11:05 +0100)
committerAndreas Schneider <asn@samba.org>
Wed, 19 Feb 2014 17:22:30 +0000 (18:22 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
source3/client/clitar.c

index ac69920e0ac8de698ab931302186b6301034b56a..b78d7df2825672c2315a9cd638a195d80275a309 100644 (file)
@@ -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;
     }