Merge commit 'v2.5.1'
[ossec-hids.git] / src / win32 / add-localfile.c
index f62342c..afba5b6 100755 (executable)
@@ -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"    
     "<!-- Extra log file -->\r\n"