Skip to content

Commit

Permalink
Fixed also plugin path issue
Browse files Browse the repository at this point in the history
  • Loading branch information
LocutusOfBorg committed Dec 6, 2013
1 parent 67644e9 commit 86ac64d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.BUGS
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ to make a detailed bug report in order to help us to find the bug and fix it.
5) dump to a file the traffic that causes the crash (we need it to reproduce
the situation)

# ./ettercap -w offending_packets.pcap ... --your-options-here ...
# ./src/ettercap -w offending_packets.pcap ... --your-options-here ...


6) analyze the core with gdb and send us the backtrace:
Expand Down
2 changes: 1 addition & 1 deletion desktop/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
if(INSTALL_DESKTOP AND ENABLE_GTK)
CONFIGURE_FILE(org.pkexec.ettercap.policy.in
configure_file(org.pkexec.ettercap.policy.in
${PKEXEC_INSTALL_WRAPPER}.policy @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PKEXEC_INSTALL_WRAPPER}.policy DESTINATION ${POLKIT_DIR})
install(FILES ettercap.svg DESTINATION ${ICON_DIR})
Expand Down
19 changes: 17 additions & 2 deletions share/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ else(ENABLE_IPV6)
configure_file(etter.conf.v4 etter.conf COPYONLY)
endif(ENABLE_IPV6)

install(FILES etter.dns etter.mdns etter.nbns etter.conf DESTINATION ${INSTALL_SYSCONFDIR}/ettercap)
install(FILES
set(EC_CONFFILES
etter.dns
etter.mdns
etter.nbns
)

set(EC_DATAFILES
ettercap.png
etter.fields
etter.filter
Expand All @@ -22,4 +27,14 @@ install(FILES
etter.mime
etter.services
etter.ssl.crt
)
foreach (f IN LISTS EC_DATAFILES EC_CONFFILES)
configure_file(${f} ${f} COPYONLY)
endforeach()
install(FILES
${EC_CONFFILES}
etter.conf
DESTINATION ${INSTALL_SYSCONFDIR}/ettercap)
install(FILES
${EC_DATAFILES}
DESTINATION ${INSTALL_DATADIR}/ettercap)
2 changes: 1 addition & 1 deletion src/ec_plugins.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ void plugin_load_all(void)
if (n <= 0) {
DEBUG_MSG("plugin_loadall: no plugin in %s searching locally...", where);
/* change the path to the local one */
where = ".";
where = "plug-ins";
n = scandir(where, &namelist, plugin_filter, alphasort);
DEBUG_MSG("plugin_loadall: %d found", n);
}
Expand Down

0 comments on commit 86ac64d

Please sign in to comment.