[PATCH applied] tools-utils: Add missing comment

Dodji Seketeli dodji@redhat.com
Mon Feb 3 15:10:10 GMT 2025


Hello,

	* src/abg-tools-utils.cc (guess_file_type): Add comment for RPM
	format magic number.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
Applied to the mainline.
---
 src/abg-tools-utils.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/abg-tools-utils.cc b/src/abg-tools-utils.cc
index 77e4bfd0..0de9b797 100644
--- a/src/abg-tools-utils.cc
+++ b/src/abg-tools-utils.cc
@@ -1649,6 +1649,8 @@ guess_file_type(istream& in)
       && buf[11] == ' ')
     return FILE_TYPE_XML_CORPUS;
 
+  // Detect RPM format.  Documented at
+  // http://ftp.rpm.org/max-rpm/s1-rpm-file-format-rpm-file-format.html.
   if ((unsigned char) buf[0]    == 0xed
       && (unsigned char) buf[1] == 0xab
       && (unsigned char) buf[2] == 0xee
-- 
2.43.5


-- 
		Dodji



More information about the Libabigail mailing list