version 1.235, 2015/04/18 16:34:25 |
version 1.238, 2015/04/29 11:04:17 |
Line 352 main(int argc, char *argv[]) |
|
Line 352 main(int argc, char *argv[]) |
|
sz = 0; |
sz = 0; |
#endif |
#endif |
|
|
if (sz == 0 && search.argmode == ARG_NAME) |
if (sz == 0) { |
fs_search(&search, &conf.manpath, |
if (search.argmode == ARG_NAME) |
argc, argv, &res, &sz); |
fs_search(&search, &conf.manpath, |
|
argc, argv, &res, &sz); |
|
else |
|
fprintf(stderr, |
|
"%s: nothing appropriate\n", |
|
progname); |
|
} |
|
|
if (sz == 0) { |
if (sz == 0) { |
rc = MANDOCLEVEL_BADARG; |
rc = MANDOCLEVEL_BADARG; |
Line 1021 spawn_pager(void) |
|
Line 1027 spawn_pager(void) |
|
/* Hand over to the pager. */ |
/* Hand over to the pager. */ |
|
|
execvp(argv[0], argv); |
execvp(argv[0], argv); |
fprintf(stderr, "%s: exec: %s\n", |
fprintf(stderr, "%s: exec %s: %s\n", |
progname, strerror(errno)); |
progname, argv[0], strerror(errno)); |
exit((int)MANDOCLEVEL_SYSERR); |
exit((int)MANDOCLEVEL_SYSERR); |
} |
} |