URL: <https://savannah.gnu.org/bugs/?62480>
Summary: find -D stat cannot print anything Project: findutils Submitted by: zhoushuiqing Submitted on: Tue 17 May 2022 01:16:55 PM UTC Category: find Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Originator Name: Originator Email: Open/Closed: Open Release: 4.8.0 Discussion Lock: Any Fixed Release: None _______________________________________________________ Details: I want to get fileinfo by find -D stat, but it prints nothing in my terminal. How can I get DebugStat info? OS: centos. find (GNU findutils) 4.8.0 In the source code file, I can find something about debugstat. in ftsfind.c: if (options.debug_options & DebugStat) { options.xstat = debug_stat; } then I check debug_stat(), it seems to be ok... [root@localhost doc]#mkdir /home/doc/test1 /home/doc/test2 [root@localhost doc]# touch /home/doc/test1/1.txt [root@localhost doc]# ln -s /home/doc/test1/1.txt [root@localhost doc]# find -D stat /home/doc/test1 /home/doc/test1 /home/doc/test1/1.txt [root@localhost doc]# find -D stat -L /home/doc/test2 /home/doc/test2 /home/doc/test2/2 Looking forward to your reply _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?62480> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/