summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/client/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 8d057573f3..d5a1f557e7 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -1099,7 +1099,7 @@ static int do_put(char *rname, char *lname, BOOL reput)
/* size of file is not known */
} else {
f = x_fopen(lname,O_RDONLY, 0);
- if (!f && reput) {
+ if (f && reput) {
if (x_tseek(f, start, SEEK_SET) == -1) {
d_printf("Error seeking local file\n");
return 1;