1 When search for wireless-tools, also check $PATH
2 --- aircrack-ng-1.1.orig/src/osdep/linux.c 2009-07-25 03:48:40.000000000 +0200
3 +++ aircrack-ng-1.1/src/osdep/linux.c 2012-01-12 16:22:05.772390762 +0100
4 @@ -244,6 +244,7 @@ static char * wiToolsPath(const char * t
8 + char *envpath, *token;
10 nbelems = sizeof(paths) / sizeof(char *);
12 @@ -254,6 +255,14 @@ static char * wiToolsPath(const char * t
16 + /* search again in $PATH */
17 + for (envpath = getenv("PATH"); ; envpath = NULL) {
18 + if ((token = strtok(envpath, ":")) == NULL)
20 + if ((path = searchInside(token, tool)) != NULL)