monit-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

patch: don't include backup files '*.~'


From: Igor Homyakov
Subject: patch: don't include backup files '*.~'
Date: Tue, 17 Feb 2004 15:50:05 +0300
User-agent: Mozilla Thunderbird 0.5 (Windows/20040207)

Index: l.l
===================================================================
RCS file: /cvsroot/monit/monit/l.l,v
retrieving revision 1.72
diff -u -b -r1.72 l.l
--- l.l 13 Feb 2004 17:48:08 -0000      1.72
+++ l.l 17 Feb 2004 12:45:14 -0000
@@ -530,10 +530,11 @@
     FILE *yyin;
     int filename_length = strlen(globbuf.gl_pathv[i]);

-    /* check whenever we have caught a directory instead of a file */
+    /* check whenever we have caught a directory or file backup copy */

     if ((filename_length == 0) ||
-        (globbuf.gl_pathv[i][filename_length-1] == '/')) {
+       (globbuf.gl_pathv[i][filename_length-1] == '~' ) ||
+        (globbuf.gl_pathv[i][filename_length-1] == '/' )) {

       continue;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]