[Bug 276235] `make installworld’ shou ld check for stale symlinks
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 276235] `make installworld’ shou ld check for stale symlinks"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 12 Feb 2024 10:23:12 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276235 Wolfram Schneider <wosch@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Open |In Progress --- Comment #1 from Wolfram Schneider <wosch@FreeBSD.org> --- Here is an example without perl, just the base tools: find /bin /boot /etc /lib /libexec /sbin /usr/bin /usr/include /usr/lib /usr/lib32 /usr/libdata/ /usr/libexec/ /usr/sbin /usr/share/ -type l -print0 | xargs -n1 -0 -P$(sysctl -n hw.ncpu) ./stale-symlink.sh cat stale-symlink.sh #!/bin/sh file="$1" if [ ! -e "$file" ]; then echo "stale symlink detected: $(ls -ld $file)" >&2 exit 1 else exit 0 fi -- You are receiving this mail because: You are the assignee for the bug.