version 1.30, 2012/03/24 00:31:55 |
version 1.32, 2012/03/25 00:48:47 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org> |
* Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
|
|
#include "config.h" |
#include "config.h" |
#endif |
#endif |
|
|
|
#include <sys/param.h> |
|
|
#include <assert.h> |
#include <assert.h> |
#include <fcntl.h> |
#include <fcntl.h> |
#include <regex.h> |
#include <regex.h> |
Line 426 apropos_search(int pathsz, char **paths, const struct |
|
Line 428 apropos_search(int pathsz, char **paths, const struct |
|
*/ |
*/ |
|
|
for (i = 0; i < pathsz; i++) { |
for (i = 0; i < pathsz; i++) { |
|
assert('/' == paths[i][0]); |
if (chdir(paths[i])) |
if (chdir(paths[i])) |
continue; |
continue; |
if (single_search(&tree, opts, expr, terms, mc, i)) |
if (single_search(&tree, opts, expr, terms, mc, i)) |