!29 update mtools version to 4.0.43
From: @Zht-Try Reviewed-by: @liuzhiqiang26 Signed-off-by: @liuzhiqiang26
This commit is contained in:
commit
48992f21a9
@ -1,37 +0,0 @@
|
|||||||
From ce3f4f86d62e9fe54850b1dbfe37641eb41e94b7 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Hongtao <zhanghongtao22@huawei.com>
|
|
||||||
Date: Tue, 14 Mar 2023 16:25:45 +0800
|
|
||||||
Subject: [PATCH] Fix mattrib does not work
|
|
||||||
|
|
||||||
For example:
|
|
||||||
|
|
||||||
#mattrib +r tmp_dos_test
|
|
||||||
#echo $?
|
|
||||||
0
|
|
||||||
#mattrib tmp_dos_test
|
|
||||||
A A:/tmp_dos_test
|
|
||||||
|
|
||||||
mattrib didn't work.
|
|
||||||
We found that the judgment in the attrib_file function was incorrect.
|
|
||||||
|
|
||||||
Signed-off-by: Hongtao Zhang <zhanghongtao22@huawei.com>
|
|
||||||
---
|
|
||||||
mattrib.c | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/mattrib.c b/mattrib.c
|
|
||||||
index 29ef1da..e5cac78 100644
|
|
||||||
--- a/mattrib.c
|
|
||||||
+++ b/mattrib.c
|
|
||||||
@@ -34,7 +34,7 @@ static int attrib_file(direntry_t *entry, MainParam_t *mp)
|
|
||||||
{
|
|
||||||
Arg_t *arg=(Arg_t *) mp->arg;
|
|
||||||
|
|
||||||
- if(isRootEntry(entry)) {
|
|
||||||
+ if(!isRootEntry(entry)) {
|
|
||||||
/* if not root directory, change it */
|
|
||||||
entry->dir.attr = (entry->dir.attr & arg->remove) | arg->add;
|
|
||||||
dir_write(entry);
|
|
||||||
--
|
|
||||||
2.39.1
|
|
||||||
|
|
||||||
Binary file not shown.
BIN
mtools-4.0.43.tar.bz2
Normal file
BIN
mtools-4.0.43.tar.bz2
Normal file
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
Name: mtools
|
Name: mtools
|
||||||
Version: 4.0.42
|
Version: 4.0.43
|
||||||
Release: 2
|
Release: 1
|
||||||
Summary: Collection of utilities to access MS-DOS disks
|
Summary: Collection of utilities to access MS-DOS disks
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: http://www.gnu.org/software/mtools/
|
URL: http://www.gnu.org/software/mtools/
|
||||||
@ -10,7 +10,6 @@ Source0: ftp://ftp.gnu.org/gnu/mtools/mtools-%{version}.tar.bz2
|
|||||||
BuildRequires: gcc texinfo autoconf automake
|
BuildRequires: gcc texinfo autoconf automake
|
||||||
|
|
||||||
Patch1: 0001-comment-invalid-info-in-conf-file.patch
|
Patch1: 0001-comment-invalid-info-in-conf-file.patch
|
||||||
Patch2: 0002-Fix-mattrib-does-not-work.patch
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Mtools is a collection of utilities to access MS-DOS disks from GNU
|
Mtools is a collection of utilities to access MS-DOS disks from GNU
|
||||||
@ -56,6 +55,9 @@ ln -s mtools.5.gz %{buildroot}%{_mandir}/man5/mtools.conf.5.gz
|
|||||||
%{_infodir}/mtools.info*
|
%{_infodir}/mtools.info*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 22 2023 Hongtao Zhang <zhanghongtao22@huawei.com> - 4.0.43-1
|
||||||
|
- update mtools version to 4.0.43
|
||||||
|
|
||||||
* Wed Mar 15 2023 Hongtao Zhang <zhanghongtao22@huawei.com> - 4.0.42-2
|
* Wed Mar 15 2023 Hongtao Zhang <zhanghongtao22@huawei.com> - 4.0.42-2
|
||||||
- Fix mattrib does not work
|
- Fix mattrib does not work
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user