fix '%{mtime}' when --file-list is specified

Signed-off-by: fandehui <fandehui@xfusion.com>
This commit is contained in:
fandehui 2023-12-27 11:14:49 +08:00
parent dc75710e62
commit c1d821ed95
2 changed files with 48 additions and 1 deletions

View File

@ -0,0 +1,43 @@
From 0eba12257e417c321ef50b48f2ce7081fdd278e3 Mon Sep 17 00:00:00 2001
From: Aleksey <rhash.admin@gmail.com>
Date: Sun, 22 Nov 2020 19:16:46 +0300
Subject: [PATCH] fix '%{mtime}' when --file-list is specified
---
ChangeLog | 9 +++++++++
file.c | 2 +-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 090a290..5ccfa5e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+Sun 22 Nov 2020 Aleksey
+ * Bugfix: print correct '%{mtime}' when --file-list is specified
+
+Sat 29 Aug 2020 Theodore Ts'o
+ * Bugfix: only follow symbolic links when --follow is specified
+
+Wed 22 Jul 2020 Aleksey
+ * Bugfix: fix buffer overflow in GOST12
+
Tue 14 Jul 2020 Aleksey
* === Version 1.4.0 ===
diff --git a/file.c b/file.c
index 7c8b346..43821d2 100644
--- a/file.c
+++ b/file.c
@@ -884,7 +884,7 @@ int file_list_read(file_list_t* list)
if (*line == '\0')
continue; /* skip empty lines */
file_init_by_print_path(&list->current_file, NULL, line,
- (list->state & FileInitUtf8PrintPath));
+ (list->state & FileInitUtf8PrintPath) | FileInitRunFstat);
return 1;
}
return 0;
--
2.42.0.windows.2

View File

@ -1,11 +1,12 @@
Name: rhash
Version: 1.4.0
Release: 3
Release: 4
Summary: Great utility for computing hash sums
License: MIT
URL: https://github.com/rhash/RHash
Source0: https://github.com/rhash/RHash/archive/v%{version}/rhash-%{version}.tar.gz
Patch0: fix-reading-a-file-list-from-stdin.patch
Patch1: fix-mtime-when-file-list-is-specified.patch
BuildRequires: gcc
@ -64,6 +65,9 @@ make test-shared
%{_mandir}/man1/*.1*
%changelog
* Wed Dec 27 2023 fandehui <fandehui@xfusion.com> - 1.4.0-4
- fix '%{mtime}' when --file-list is specified
* Fri Nov 24 2023 fandehui <fandehui@xfusion.com> - 1.4.0-3
- fix reading a file-list from stdin