!43 fix '%{mtime}' when --file-list is specified
From: @linker99 Reviewed-by: @Charlie_li Signed-off-by: @Charlie_li
This commit is contained in:
commit
3d03a3dab8
43
fix-mtime-when-file-list-is-specified.patch
Normal file
43
fix-mtime-when-file-list-is-specified.patch
Normal 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
|
||||||
|
|
||||||
@ -1,11 +1,12 @@
|
|||||||
Name: rhash
|
Name: rhash
|
||||||
Version: 1.4.0
|
Version: 1.4.0
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: Great utility for computing hash sums
|
Summary: Great utility for computing hash sums
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/rhash/RHash
|
URL: https://github.com/rhash/RHash
|
||||||
Source0: https://github.com/rhash/RHash/archive/v%{version}/rhash-%{version}.tar.gz
|
Source0: https://github.com/rhash/RHash/archive/v%{version}/rhash-%{version}.tar.gz
|
||||||
Patch0: fix-reading-a-file-list-from-stdin.patch
|
Patch0: fix-reading-a-file-list-from-stdin.patch
|
||||||
|
Patch1: fix-mtime-when-file-list-is-specified.patch
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
|
|
||||||
@ -64,6 +65,9 @@ make test-shared
|
|||||||
%{_mandir}/man1/*.1*
|
%{_mandir}/man1/*.1*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Fri Nov 24 2023 fandehui <fandehui@xfusion.com> - 1.4.0-3
|
||||||
- fix reading a file-list from stdin
|
- fix reading a file-list from stdin
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user