summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2014-02-17 11:07:16 +0100
committerAndreas Schneider <asn@samba.org>2014-02-19 18:22:30 +0100
commitf955bc4b5de449a6c6ffcbefa807b207d754adf8 (patch)
tree4a1e6334d9a09704593a1a116bdb3b3836a9c751 /source3/client
parent75dbb27115ff2d32a69215075cc79bdfe956160f (diff)
downloadsamba-f955bc4b5de449a6c6ffcbefa807b207d754adf8.tar.gz
s3-clitar: Improve readabilty of tar_set_newer_than().
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
Diffstat (limited to 'source3/client')
-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 b78d7df2825..45b88ea102a 100644
--- a/source3/client/clitar.c
+++ b/source3/client/clitar.c
@@ -1211,8 +1211,10 @@ static int tar_set_newer_than(struct tar *t, const char *filename)
{
extern time_t newer_than;
SMB_STRUCT_STAT stbuf;
+ int rc;
- if (sys_stat(filename, &stbuf, false) != 0) {
+ rc = sys_stat(filename, &stbuf, false);
+ if (rc != 0) {
DBG(0, ("Error setting newer-than time\n"));
return 1;
}