commit e872e07bb745522b12b53eab286d5534e9d14507
parent 14706f499a0941ea5b063ab56d61c217963876b9
Author: Anselm R. Garbe <garbeam@wmii.de>
Date: Tue, 28 Feb 2006 11:51:45 +0100
restored Sanders patch
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/cmd/wmiir.c b/cmd/wmiir.c
@@ -39,6 +39,9 @@ write_data(unsigned int fid)
}
offset += len;
}
+ if(offset == 0) /* do an explicit empty write when no writing has been done yet */
+ if(ixp_client_write(&c, fid, offset, 0, 0) != 0)
+ fprintf(stderr, "wmiir: cannot write file: %s\n", c.errstr);
free(data);
}