Does this look correct (this is in dd_close)? --- dd.c 2002/01/10 03:25:12 1.26 +++ dd.c 2002/07/18 14:44:46 @ -360,6 +360,8 @ } if (out.dbcnt) dd_out(1); + if(fsync(out.fd) < 0) + err(1, "%s", out.name); } void