X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Fwin32%2Fadd-localfile.c;fp=src%2Fwin32%2Fadd-localfile.c;h=afba5b653f92eda88f4bc50e235332a91eb191f6;hp=f62342c668befec7c43b45a387f5631e0b74f44d;hb=a62b46c229549212d536867b7e5e24d7576ebe8b;hpb=d623b82886b9b5fbba3fa27c3bfac51f3f8af108 diff --git a/src/win32/add-localfile.c b/src/win32/add-localfile.c index f62342c..afba5b6 100755 --- a/src/win32/add-localfile.c +++ b/src/win32/add-localfile.c @@ -1,11 +1,11 @@ -/* @(#) $Id: add-localfile.c,v 1.13 2009/06/24 18:53:10 dcid Exp $ */ +/* @(#) $Id$ */ /* Copyright (C) 2009 Trend Micro Inc. * All rights reserved. * * This program is a free software; you can redistribute it * and/or modify it under the terms of the GNU General Public - * License (version 3) as published by the FSF - Free Software + * License (version 2) as published by the FSF - Free Software * Foundation */ @@ -122,35 +122,6 @@ int config_file(char *name, char *file, int quiet) } printf("%s: Adding log file to be monitored: '%s'.\n", name,file); - printf("%s: Continue? (y/n):", name); - while(1) - { - char u_buffer[256]; - memset(u_buffer, '\0', 256); - if((fgets(u_buffer, 254, stdin) != NULL) && - (strlen(u_buffer) < 250)) - { - if((u_buffer[0] == 'y') || (u_buffer[0] == 'Y')) - { - add = 1; - break; - } - else if((u_buffer[0] == 'n') || (u_buffer[0] == 'N')) - { - add = 0; - break; - } - } - printf("%s: Continue? (y/n):", name); - } - - if(add == 0) - { - printf("%s: Action not taken.\n", name); - fclose(fp); - return(0); - } - fprintf(fp, "\r\n" "\r\n" "\r\n"