URL: <https://savannah.gnu.org/bugs/?56410>
Summary: find -L doesn't follow symlinks outside the specified search scope Project: findutils Submitted by: None Submitted on: Ср. 29 мая 2019 07:49:18 Category: find Severity: 3 - Normal Item Group: Wrong result Status: None Privacy: Public Assigned to: None Originator Name: Arthur Pogosyan Originator Email: fanto...@inbox.ru Open/Closed: Open Discussion Lock: Any Release: None Fixed Release: 4.7.0 _______________________________________________________ Details: Hello! I was trying to find files from directory full of symlinks and exec file on them, but wasn't able to do so. Find just show info about symlinks, instead of files they lead to, despite option -L was specified Here is an example: root@ubuntu1804x64:~# find --version find (GNU findutils) 4.7.0-git Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Eric B. Decker, James Youngman, and Kevin Dalley. Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS(FTS_CWDFD) CBO(level=2) root@ubuntu1804x64:~# mkdir /temp root@ubuntu1804x64:~# mkdir /temp2 root@ubuntu1804x64:~# echo "test" > /temp/file0.txt root@ubuntu1804x64:~# ln -s /temp/file0.txt /temp2/file root@ubuntu1804x64:~# find -L /temp2/ -type f -exec file '{}' \; /temp2/file: symbolic link to /temp/file0.txt _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?56410> _______________________________________________ Сообщение отправлено по Savannah https://savannah.gnu.org/