summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorOliver Tappe2007-05-06 20:18:20 +0200
committerOliver Tappe2007-05-06 20:18:20 +0200
commitdb8560f411bff2c71820fbfa0319acd4fd0f8337 (patch)
treee793dcf2ca9474524a9eae01663fe600548c6ade /bin
parent* removed dhcp-client again, as according to Dirk it isn't *required* just pr... (diff)
downloadcore-db8560f411bff2c71820fbfa0319acd4fd0f8337.tar.gz
core-db8560f411bff2c71820fbfa0319acd4fd0f8337.tar.xz
core-db8560f411bff2c71820fbfa0319acd4fd0f8337.zip
* switched strange behaviour: instead of forcing absolute paths to be relative to given root,
we know force relative paths to be relative from that root. This allows slxldd to work against binaries that live outside of that root, too. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1015 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'bin')
-rwxr-xr-xbin/slxldd10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/slxldd b/bin/slxldd
index 38b9508f..88ac7574 100755
--- a/bin/slxldd
+++ b/bin/slxldd
@@ -83,9 +83,9 @@ if (!@ARGV) {
fetchLoaderConfig();
foreach my $file (@ARGV) {
- if ($file =~ m[^/]) {
- # force absolute path relative to $rootPath:
- $file = "$rootPath$file";
+ if (substr($file,0,1) ne '/') {
+ # force relative paths relative to $rootPath:
+ $file = "$rootPath/$file";
}
if (!-e $file) {
print STDERR _tr("slxldd: unable to find file '%s', skipping it\n", $file);
@@ -135,12 +135,12 @@ sub fetchLoaderConfig
push @libFolders, "$rootPath/usr/lib";
}
- # add lib32-folders for 64-bit Debians, as they do not
+ # add lib32-folders for 64-bit Debians, as they do not
# refer those in ld.so.conf (which I find strange...)
if (-e '/lib32' && !grep { m[^$rootPath/lib32$]} @libFolders) {
push @libFolders, "$rootPath/lib32";
}
- if (-e '/usr/lib32'
+ if (-e '/usr/lib32'
&& !grep { m[^$rootPath/usr/lib32$] } @libFolders) {
push @libFolders, "$rootPath/usr/lib32";
}