Commit Diff


commit - 95bdb85df1b522e11e264cba3c300f919cde4503
commit + e98a81e6856357207df4b28256b3f472b90f0408
blob - 9834b049e72a099055a8c44dc2b896abe7ad2ec3
blob + 54e293a9edcae0e19c86ba7f2094cf5c456ff12a
--- lib/object.c
+++ lib/object.c
@@ -981,7 +981,8 @@ got_object_raw_alloc(struct got_raw_object **obj, uint
 		}
 
 		if (sb.st_size != tot) {
-			err = got_error(GOT_ERR_PRIVSEP_LEN);
+			err = got_error_msg(GOT_ERR_BAD_OBJ_HDR,
+			    "raw object has unexpected size");
 			goto done;
 		}
 #ifndef GOT_PACK_NO_MMAP