6 Star 0 Fork 10

src-openEuler / mtools

 / 详情

mattrib设置属性无效

已验收
缺陷
创建于  
2023-03-14 10:01
# mattrib -X A:tmp_dos_test
A
# mattrib +r A:tmp_dos_test
# mattrib -X A:tmp_dos_test
A
# mattrib -a A:tmp_dos_test
# mattrib -X A:tmp_dos_test
A
# mattrib +h A:tmp_dos_test
# mattrib -X A:tmp_dos_test
A

评论 (2)

ltx 创建了缺陷

Hi lutianxiong, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Storage, and any of the maintainers: @liuzhiqiang , @linfeilong835 , @louhongxiang , @zero , @swf504

openeuler-ci-bot 添加了
 
sig/Storage
标签
ltx 修改了描述
ltx 负责人设置为swf504
ltx 里程碑设置为openEuler-23.03-round-3
swf504 添加协作者张洪涛

定位及问题原因:
gdb跟踪mattrib +r tmp_dos_test以及mattrib -X tmp_dos_test流程。
跟踪发现函数attrib_file中的root目录判断逻辑有误。
输入图片说明
此处isRootEntry(entry)判断错误,应该是非root目录时进入设置属性流程。
进而导致mattrib设置文件属性时命令失效。

修改及验证
打入补丁
输入图片说明
再次测试
输入图片说明
重新运行生效。

补丁已推送社区
https://lists.gnu.org/archive/html/info-mtools/2023-03/msg00000.html

影响分析:
1、功能影响:mattrib全部的设置属性的命令均会失效,查询不受影响。
2、影响范围:走读mtools-4.0.40及mtools-4.0.35代码均无此问题。仅mtools-4.0.42版本存在。

张洪涛 通过src-openeuler/mtools Pull Request !27任务状态待办的 修改为已完成
张以正 优先级设置为次要
张以正 任务状态已完成 修改为已验收

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
5329419 openeuler ci bot 1632792936 5601591 lutianxiong 1587133339
1
https://gitee.com/src-openeuler/mtools.git
git@gitee.com:src-openeuler/mtools.git
src-openeuler
mtools
mtools

搜索帮助