> Thanks, I've committed a patch that adds these commands to smbclient.
> I made it a bit different tough.
> (Also added a patch for xfile.c)

There is a small bug in CVS, patch follows.

Josef


diff -upr samba.3.0.cvs/source/client/client.c samba.3.0.fixed/source/client/client.c
--- samba.3.0.cvs/source/client/client.c        Tue Aug 27 21:22:50 2002
+++ samba.3.0.fixed/source/client/client.c      Tue Aug 27 23:16:02 2002
@@ -1099,7 +1099,7 @@ static int do_put(char *rname, char *lna
                /* 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;

Reply via email to