diff options
author | rusty <rusty> | 2000-08-11 14:02:27 +0000 |
---|---|---|
committer | rusty <rusty> | 2000-08-11 14:02:27 +0000 |
commit | e01b2a8e0317d32731afe1883fdc0988d7ec2ae2 (patch) | |
tree | 3afe9c58847f8606e9059c1b8a05d1b499d56bf5 | |
parent | 7cf76f9f2b5fedc16a136365839f0f0e90921d4b (diff) |
Report error when a shared target can't be opened - Hawald Welte.
-rw-r--r-- | iptables.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -637,7 +637,8 @@ find_match(const char *name, enum ipt_tryload tryload) name); } else if (tryload == LOAD_MUST_SUCCEED) exit_error(PARAMETER_PROBLEM, - "Couldn't load match `%s'\n", name); + "Couldn't load match `%s':%s\n", + name, dlerror()); } return ptr; @@ -885,7 +886,8 @@ find_target(const char *name, enum ipt_tryload tryload) name); } else if (tryload == LOAD_MUST_SUCCEED) exit_error(PARAMETER_PROBLEM, - "Couldn't load target `%s'\n", name); + "Couldn't load target `%s':%s\n", + name, dlerror()); } return ptr; @@ -1717,7 +1719,7 @@ int do_command(int argc, char *argv[], char **table, iptc_handle_t *handle) set_option(&options, OPT_JUMP, &fw.ip.invflags, invert); jumpto = parse_target(optarg); - target = find_target(jumpto, TRY_LOAD); + target = find_target(jumpto, LOAD_MUST_SUCCEED); if (target) { size_t size; |