[bug #62480] find -D stat cannot print anything

zhoushuiqing <[email protected]>
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <[email protected]>
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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.