mirror of
https://github.com/yaobinwen/dpkg.git
synced 2026-01-12 08:20:35 +00:00
The old name merged-usr-via-symlinks was confusing, as other deployment strategies can also use symlinks. Use the less ambiguous name which describes the actual key feature of using aliased directories.
10 lines
251 B
Bash
10 lines
251 B
Bash
#!/bin/sh
|
|
|
|
for d in /bin /sbin /lib /lib32 /libo32 /libx32 /lib64; do
|
|
linkname="$(readlink $d)"
|
|
if [ "$linkname" = "usr$d" ] || [ "$linkname" = "/usr$d" ]; then
|
|
echo "System tainted due to merged-usr-via-aliased-dirs." >&3
|
|
break
|
|
fi
|
|
done
|