From 4db90ef93a4afc72e7c5c07eea956c36178e3d4e Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sat, 23 Dec 2017 22:26:04 +0000 Subject: gendistrib: fix bug when media.cfg links directly to main hdlist In the media.cfg file you can specify a relative path in hdlist= and thus link directly to the master hdlist file. But if you do this, gendistrib deletes the master file and replaces it with a soft link which links back to itself. This patch fixes that. --- gendistrib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gendistrib') diff --git a/gendistrib b/gendistrib index 6a2094c..5baf66b 100755 --- a/gendistrib +++ b/gendistrib @@ -220,7 +220,7 @@ sub hdlist_alternate_location { if (! -e $main) { print STDERR "missing $main, not creating alternate location $alternate\n"; - } elsif (-l $alternate && inode($alternate) == inode($main)) { + } elsif (inode($alternate) == inode($main)) { # ok } else { if (-l $alternate) { -- cgit v1.2.1