fix reading a file-list from stdin

This commit is contained in:
linker99 2023-10-31 21:26:43 +08:00
parent 645ee5be94
commit dc75710e62
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From d10d941db89d919f3963f8dc9c0113b3d0e40854 Mon Sep 17 00:00:00 2001
From: Aleksey <rhash.admin@gmail.com>
Date: Fri, 17 Jul 2020 07:06:33 +0300
Subject: [PATCH] fix reading a file-list from stdin
---
find_file.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/find_file.c b/find_file.c
index 00c7c9a..927a8a8 100644
--- a/find_file.c
+++ b/find_file.c
@@ -80,7 +80,7 @@ void file_search_add_file(file_search_data* data, tstr_t path, unsigned file_mod
}
if (IS_DASH_TSTR(path))
{
- file_search_add_special_file(data, (FileIsRoot | FileIsStdin), NULL);
+ file_search_add_special_file(data, (file_mode | FileIsStdin), NULL);
return;
}
--
2.27.0

View File

@ -1,10 +1,11 @@
Name: rhash
Version: 1.4.0
Release: 2
Release: 3
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
BuildRequires: gcc
@ -63,6 +64,9 @@ make test-shared
%{_mandir}/man1/*.1*
%changelog
* Fri Nov 24 2023 fandehui <fandehui@xfusion.com> - 1.4.0-3
- fix reading a file-list from stdin
* Thu Apr 8 2021 shenyangyang <shenyangyang4@huawei.com> - 1.4.0-2
- Delete unneeded build requires