[Pkg-electronics-commits] [gnucap] 31/43: attach bugfix attempt

felix salfelder felix-guest at moszumanska.debian.org
Wed Oct 4 03:21:47 UTC 2017


This is an automated email from the git hooks/post-receive script.

felix-guest pushed a commit to branch master
in repository gnucap.

commit 835837615696acf125750b743f274ea45ae09191
Author: Felix Salfelder <felix at salfelder.org>
Date:   Tue Jun 13 18:55:44 2017 +0100

    attach bugfix attempt
    
    attach /complete/path/to/module.so
    and
    attach ./local/module.so
    
    may result in a dlerror (e.g. unresolved symbol), it is now displayed.
---
 lib/c_attach.cc | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/c_attach.cc b/lib/c_attach.cc
index d1e5c0b..6000df4 100644
--- a/lib/c_attach.cc
+++ b/lib/c_attach.cc
@@ -99,7 +99,11 @@ public:
 	assert(!handle);
       }
       
-      if (!handle) {
+      if(short_file_name[0]=='/'){ untested();
+	// don't try fancy stuff.
+      }else if(short_file_name[0]=='.'){ untested();
+	// don't try fancy stuff.
+      }else if (!handle) {
 	// didn't find locally, try plug_path(), even if '/' in name
 	std::string path = plug_path();
 	std::string full_file_name = findfile(short_file_name, path, R_OK);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-electronics/gnucap.git



More information about the Pkg-electronics-commits mailing list