X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=recover-src%2Famrecover.c;h=4e2776a60356bf01fff2416d71ad02363e7adab7;hb=2df780bff19c457b0debb7adc29972a0bc2a5dc2;hp=1a54b1f8adbd49573ded0d0c00b4abfd0f9944fa;hpb=0de2ad0a86685398621fb8ffa6990c029681bb3a;p=debian%2Famanda diff --git a/recover-src/amrecover.c b/recover-src/amrecover.c index 1a54b1f..4e2776a 100644 --- a/recover-src/amrecover.c +++ b/recover-src/amrecover.c @@ -24,7 +24,7 @@ * file named AUTHORS, in the root directory of this distribution. */ /* - * $Id: amrecover.c,v 1.29.4.7.4.6.2.7 2003/01/04 04:33:32 martinea Exp $ + * $Id: amrecover.c,v 1.29.4.7.4.6.2.7.2.1 2005/09/20 21:31:52 jrjackson Exp $ * * an interactive program for recovering backed-up files */ @@ -424,17 +424,8 @@ char **argv; char cwd[STR_SIZE], *dn_guess = NULL, *mpt_guess = NULL; char *service_name; char *line = NULL; - int fd; - 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); set_pname("amrecover"); dbopen();