On 2 May 2021 at 21:35, Tim via users wrote:
Subject: Re: Question about broken link files?
To: users(a)lists.fedoraproject.org
Date sent: Sun, 02 May 2021 21:35:23 +0930
Send reply to: Community support for Fedora
users <users(a)lists.fedoraproject.org>
From: Tim via users
<users(a)lists.fedoraproject.org>
Copies to: Tim <ignored_mailbox(a)yahoo.com.au>
On Sun, 2021-05-02 at 18:05 +1000, Michael D. Setzer II via users
wrote:
> Ran the following command in / to see what it finds.
> find . -xtype l >/badlinks
>
> Summary of results of broken links by top directory
> /etc 15
> /home 17
> /proc 170
> /root 2
> /run 145
> /usr 325
> 674
>
> Not an awful lot, but wonder if they should be fixed or
> just left alone?
On a whim, I tried your command on my CentOS 7 (clean install) system,
only these five lines turned up:
find: ‘./proc/1853/task/1853/fd/5’: No such file or directory
find: ‘./proc/1853/task/1853/fdinfo/5’: No such file or directory
find: ‘./proc/1853/fd/6’: No such file or directory
find: ‘./proc/1853/fdinfo/6’: No such file or directory
find: ‘./run/user/1000/gvfs’: Permission denied
So, faring better than your discovery.
Yes, there are some messages like that that pop up since
the fin command can't access things. Think those are sent
to stderr
find . -xtype l >badlinks 2>ERR
Sends the stderr output to ERR file.
Modified script to filter out /proc and /run
find . -xtype l >/badlinks 2>ERR
grep -v '/proc\|/run' </badlinks >/badlinks-clean
Result
wc -l badlinks*
672 badlinks
359 badlinks-clean
Don't know what the projectM is, but since it has links to
./usr/share/projectM/fonts/Vera.ttf
./usr/share/projectM/fonts/VeraMono.ttf
Must assume it thinks they should be there?
The Vera.ttf is on my system in
./usr/share/fonts/bitstream-vera-sans-fonts/Vera.ttf
But not the VeraMono.ttf. Did find other packages that do
have that font?
So, not clear if in this case projectM expected the fonts to
be where it puts the links to, or it whatever did create
that directory and fonts no longer exists in Fedora, and
they just didn't upate it? Don't know why I looked at that
one. Near the end of the /usr ones??
There is no /proc/1853 anything. So was that a broken link pointing to
there, or was it finding something from there, that's now disappeared?
If I do (still as the root user): ll /run/user/1000/
ls: cannot access /run/user/1000/gvfs: Permission denied
total 0
drwx------. 2 tim tim 60 May 2 21:25 dconf
d?????????? ? ? ? ? ? gvfs
drwx------. 2 tim tim 100 May 2 16:25 keyring
drwx------. 2 tim tim 80 May 2 16:25 pulse
Not sure if root oughtn't to be able to see gvfs, or that's just some
weird anomaly about how virtual file systems work.
Then, as myself, doing: ll /run/user/1000/
total 0
drwx------. 2 tim tim 60 May 2 21:29 dconf
dr-x------. 2 tim tim 0 May 2 16:25 gvfs
drwx------. 2 tim tim 100 May 2 16:25 keyring
drwx------. 2 tim tim 80 May 2 16:25 pulse
I thought root couldn't be stopped from viewing user's files.
--
uname -rsvp
Linux 3.10.0-1160.25.1.el7.x86_64 #1 SMP Wed Apr 28 21:49:45 UTC 2021 x86_64
Boilerplate: All unexpected mail to my mailbox is automatically deleted.
I will only get to see the messages that are posted to the mailing list.
_______________________________________________
users mailing list -- users(a)lists.fedoraproject.org
To unsubscribe send an email to users-leave(a)lists.fedoraproject.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it:
https://pagure.io/fedora-infrastructure
+------------------------------------------------------------+
Michael D. Setzer II - Computer Science Instructor
(Retired)
mailto:mikes@guam.net
mailto:msetzerii@gmail.com
Guam - Where America's Day Begins
G4L Disk Imaging Project maintainer
http://sourceforge.net/projects/g4l/
+------------------------------------------------------------+