X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=client-src%2Famandad.c;h=2e1e052c18442f602c854396346cf946bdd324e1;hb=2df780bff19c457b0debb7adc29972a0bc2a5dc2;hp=d0e48fb60d84831018c8b58c349703c1fccb68b7;hpb=0de2ad0a86685398621fb8ffa6990c029681bb3a;p=debian%2Famanda diff --git a/client-src/amandad.c b/client-src/amandad.c index d0e48fb..2e1e052 100644 --- a/client-src/amandad.c +++ b/client-src/amandad.c @@ -25,7 +25,7 @@ * University of Maryland at College Park */ /* - * $Id: amandad.c,v 1.32.2.4.4.1.2.6.2.1 2004/02/13 14:01:07 martinea Exp $ + * $Id: amandad.c,v 1.32.2.4.4.1.2.6.2.2 2005/09/20 21:31:52 jrjackson Exp $ * * handle client-host side of Amanda network communications, including * security checks, execution of the proper service, and acking the @@ -84,7 +84,6 @@ int argc; char **argv; { int n; - int fd; char *errstr = NULL; unsigned long malloc_hist_1, malloc_size_1; unsigned long malloc_hist_2, malloc_size_2; @@ -112,16 +111,7 @@ char **argv; struct service_s *servp; fd_set insock; - 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(); /*