1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-04 16:58:42 +03:00

s3-clitar: Improve readabilty of tar_set_newer_than().

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
This commit is contained in:
Andreas Schneider 2014-02-17 11:07:16 +01:00
parent 75dbb27115
commit f955bc4b5d

View File

@ -1211,8 +1211,10 @@ static int tar_set_newer_than(struct tar *t, const char *filename)
{ {
extern time_t newer_than; extern time_t newer_than;
SMB_STRUCT_STAT stbuf; 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")); DBG(0, ("Error setting newer-than time\n"));
return 1; return 1;
} }