version 1.16, 2003/06/10 22:20:46 |
version 1.17, 2003/09/26 22:22:26 |
|
|
main(int argc, char *argv[]) |
main(int argc, char *argv[]) |
{ |
{ |
struct sigaction sa; |
struct sigaction sa; |
char **p, **paths; |
char **p, **paths, **paths2; |
int ch; |
int ch; |
|
|
memset(&sa, 0, sizeof sa); |
memset(&sa, 0, sizeof sa); |
|
|
usage(); |
usage(); |
*p = NULL; |
*p = NULL; |
|
|
if (!(paths = realloc(paths, sizeof(char *) * (p - paths + 1)))) |
if (!(paths2 = realloc(paths, sizeof(char *) * (p - paths + 1)))) |
err(1, NULL); |
err(1, NULL); |
|
paths = paths2; |
|
|
if ((dotfd = open(".", O_RDONLY, 0)) < 0) |
if ((dotfd = open(".", O_RDONLY, 0)) < 0) |
err(1, ".:"); |
err(1, ".:"); |