X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=server-src%2Famcleanupdisk.c;h=27d33a701f4331406d38a7270e25931d6e7634fe;hb=2df780bff19c457b0debb7adc29972a0bc2a5dc2;hp=657ad0103cb7e4c751c271f3ca0bf1a906928ed8;hpb=0de2ad0a86685398621fb8ffa6990c029681bb3a;p=debian%2Famanda diff --git a/server-src/amcleanupdisk.c b/server-src/amcleanupdisk.c index 657ad01..27d33a7 100644 --- a/server-src/amcleanupdisk.c +++ b/server-src/amcleanupdisk.c @@ -24,7 +24,7 @@ * file named AUTHORS, in the root directory of this distribution. */ /* - * $Id: amcleanupdisk.c,v 1.1.2.6.4.3.2.2 2002/11/05 01:59:23 martinea Exp $ + * $Id: amcleanupdisk.c,v 1.1.2.6.4.3.2.2.2.1 2005/09/20 21:31:52 jrjackson Exp $ */ #include "amanda.h" @@ -50,22 +50,12 @@ char **main_argv; { struct passwd *pw; char *dumpuser; - int fd; disklist_t *diskqp; char *conffile; char *conf_diskfile; char *conf_infofile; - 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("amcleanupdisk");