Commit Diff


commit - 91f48e256d92ce302b75d6cc208c09d4aaac5377
commit + caa64af1e323bd0b511ce59fa1c26fc8287a89b2
blob - a0ea9b20b85f142f7f99be998fab83d6394b2b0f
blob + 35e8d50a11886e2adb0af8c427c1814e3368364d
--- kamiftp/ftp.c
+++ kamiftp/ftp.c
@@ -577,6 +577,9 @@ do_stat(int fid, struct np_stat *st)
 	recv_msg();
 	expect2(Rstat, iota_tag);
 
+	/* eat up the first two byte length */
+	np_read16(buf);
+
 	if (np_read_stat(buf, st) == -1)
 		errx(1, "invalid stat struct read");