X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=client-src%2Fselfcheck.c;h=4f08d1ef873583ff413834a3c1398465b8fec963;hb=2df780bff19c457b0debb7adc29972a0bc2a5dc2;hp=a82af7c4c9c4d5c71698884776e8b446eb09ee32;hpb=0de2ad0a86685398621fb8ffa6990c029681bb3a;p=debian%2Famanda diff --git a/client-src/selfcheck.c b/client-src/selfcheck.c index a82af7c..4f08d1e 100644 --- a/client-src/selfcheck.c +++ b/client-src/selfcheck.c @@ -25,7 +25,7 @@ * University of Maryland at College Park */ /* - * $Id: selfcheck.c,v 1.40.2.3.4.4.2.22.2.2 2004/08/12 12:30:53 martinea Exp $ + * $Id: selfcheck.c,v 1.40.2.3.4.4.2.22.2.3 2005/09/20 21:31:52 jrjackson Exp $ * * do self-check and send back any error messages */ @@ -90,23 +90,13 @@ char **argv; char *err_extra = NULL; char *s, *fp; int ch; - int fd; unsigned long malloc_hist_1, malloc_size_1; unsigned long malloc_hist_2, malloc_size_2; option_t *options; /* initialize */ - for(fd = 3; fd < FD_SETSIZE; fd++) { - /* - * Make sure nobody spoofs us with a lot of extra open files - * that would cause an open we do to get a very high file - * descriptor, which in turn might be used as an index into - * an array (e.g. an fd_set). - */ - close(fd); - } - + safe_fd(-1, 0); safe_cd(); set_pname("selfcheck");