X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=client-src%2Fversionsuffix.c;h=d0ed70f744b5d93eff0b0645c9770cf4c46d20b4;hb=1194fb66aa28d9929c3f2bef3cc6c1c3f40a60a4;hp=0eb16e588885903f289c752fbdeef28ebc904c9c;hpb=3ab887b9bc819a846c75dd7f2ee5d41fac22b19f;p=debian%2Famanda diff --git a/client-src/versionsuffix.c b/client-src/versionsuffix.c index 0eb16e5..d0ed70f 100644 --- a/client-src/versionsuffix.c +++ b/client-src/versionsuffix.c @@ -24,26 +24,18 @@ * 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.8 2005/09/20 21:32:25 jrjackson Exp $ * * prints the (possibly empty) suffix appended to amanda program names */ #include "amanda.h" #include "version.h" +int main P((void)); + 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");