X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=client-src%2Fversionsuffix.c;h=4d60148e17d3f86cbd4ec0c72397797571c91f48;hb=2df780bff19c457b0debb7adc29972a0bc2a5dc2;hp=0eb16e588885903f289c752fbdeef28ebc904c9c;hpb=0de2ad0a86685398621fb8ffa6990c029681bb3a;p=debian%2Famanda diff --git a/client-src/versionsuffix.c b/client-src/versionsuffix.c index 0eb16e5..4d60148 100644 --- a/client-src/versionsuffix.c +++ b/client-src/versionsuffix.c @@ -24,7 +24,7 @@ * file named AUTHORS, in the root directory of this distribution. */ /* - * $Id: versionsuffix.c,v 1.6 1998/07/04 00:18:28 oliva Exp $ + * $Id: versionsuffix.c,v 1.6.12.1 2005/09/20 21:31:52 jrjackson Exp $ * * prints the (possibly empty) suffix appended to amanda program names */ @@ -33,17 +33,7 @@ int main() { - 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("versionsuffix");