rpm/SOURCES/0001-Disable-checking-diglen-in-sign-files.patch

26 lines
773 B
Diff
Raw Permalink Normal View History

2024-08-21 08:04:06 +00:00
From d3602ba36bbedae57ef644819071edf698fc6c23 Mon Sep 17 00:00:00 2001
From: eabdullin <ed.abdullin.1@gmail.com>
Date: Wed, 21 Aug 2024 11:02:32 +0300
Subject: [PATCH] Disable checking diglen in sign files
---
sign/rpmsignfiles.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/sign/rpmsignfiles.c b/sign/rpmsignfiles.c
index b143c5b..34cda48 100644
--- a/sign/rpmsignfiles.c
+++ b/sign/rpmsignfiles.c
@@ -42,8 +42,6 @@ const char *key, char *keypass, uint32_t *siglenp)
/* some entries don't have a digest - we return an empty signature */
memset(zeros, 0, diglen);
- if (memcmp(zeros, fdigest, diglen) == 0)
- return strdup("");
/* prepare file signature */
memset(signature, 0, MAX_SIGNATURE_LENGTH);
--
2.39.3 (Apple Git-146)