Dominique Leuenberger
60983cdfe6
- do not allow symlinks to point to itself (not existant as result) OBS-URL: https://build.opensuse.org/request/show/126814 OBS-URL: https://build.opensuse.org/package/show/Base:System/brp-check-suse?expand=0&rev=38
17 lines
503 B
Diff
17 lines
503 B
Diff
Index: brp-check-suse-1.0/brp-25-symlink
|
|
===================================================================
|
|
--- brp-check-suse-1.0.orig/brp-25-symlink 2012-03-13 13:52:11.000000000 +0100
|
|
+++ brp-check-suse-1.0/brp-25-symlink 2012-07-01 21:37:11.698384089 +0200
|
|
@@ -79,6 +79,11 @@ do
|
|
fi
|
|
done
|
|
|
|
+ if test "$link" = "$link_dest"; then
|
|
+ echo "ERROR: $link points to itself (as $orig_link_dest)"
|
|
+ exit 1
|
|
+ fi
|
|
+
|
|
# black list
|
|
case "$link,$link_dest" in
|
|
*,/var/lib/named*)
|