From e614f5c724fa9eae7fd826ee954835be38a76087 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Fri, 5 Jun 2009 16:55:16 +0000 Subject: [PATCH] Document the 6 mysterious bytes we skip in decompress_iob(). --- parsers.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/parsers.c b/parsers.c index 3b9b0170..74c5dd31 100644 --- a/parsers.c +++ b/parsers.c @@ -1,4 +1,4 @@ -const char parsers_rcs[] = "$Id: parsers.c,v 1.173 2009/06/05 16:53:55 fabiankeil Exp $"; +const char parsers_rcs[] = "$Id: parsers.c,v 1.174 2009/06/05 16:54:27 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/parsers.c,v $ @@ -448,6 +448,11 @@ jb_err decompress_iob(struct client_state *csp) log_error(LOG_LEVEL_ERROR, "Invalid gzip header flags when decompressing"); return JB_ERR_COMPRESS; } + + /* + * Skip mtime (4 bytes), extra flags (1 byte) + * and OS type (1 byte). + */ cur += 6; /* Skip extra fields if necessary. */ -- 2.39.2