[PATCH] to add Mark Lord's symlinks to busybox
Claus Klein
claus.klein at arcormail.de
Tue Jan 1 13:26:31 PST 2008
Claus Klein schrieb:
> Hi all,
>
> I prepared a symlinks applet to busybox. It
> Scans directories for symbolic links, and identifies dangling, relative,
> absolute, messy, lengthy and other_fs links. Can optionally change
> absolute
> links to relative within a given filesystem. Recommended for use by
> anyone
> developing and/or maintaining a Linux distribution or CD-ROM.
>
> Too I added a chroot option to it to be able to check the symlinks in
> a target root
> file system on a development host to prevent dead links on the
> embedded system.
>
> Claus
Ps: with symlink you may find bugs like this:
root at slax:/buildroot/project_build_i386/uclibc/root# symlinks -r -R .
chroot to /mnt/hda1/buildroot/project_build_i386/uclibc/root:
cwd: /
dangling: /etc/mtab -> ../proc/mounts
dangling: /etc/resolv.conf -> ../tmp/resolv.conf
dangling: /usr/lib/terminfo ->
/mnt/hda1/buildroot/build_i386/staging_dir/usr/share/terminfo
<<<<<<<<<<<<<<<< :-((
messy: /usr/bin/slogin -> ./ssh
dangling: /var/lib/avahi-autoipd -> /tmp/avahi-autoipd
root at slax:/buildroot/project_build_i386/uclibc/root#
ck
More information about the busybox
mailing list