[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ipcop-svn
Subject:    [Ipcop-svn] SF.net SVN: ipcop:[4881]
From:       owes () users ! sourceforge ! net
Date:       2010-08-27 15:01:59
Message-ID: E1Op0RK-0004dz-W6 () sfp-svn-4 ! v30 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Revision: 4881
          http://ipcop.svn.sourceforge.net/ipcop/?rev=4881&view=rev
Author:   owes
Date:     2010-08-27 15:01:58 +0000 (Fri, 27 Aug 2010)

Log Message:
-----------
Fix silencing when vnstat creates databases.

Modified Paths:
--------------
    ipcop/trunk/src/misc-progs/accountingctrl.c

Modified: ipcop/trunk/src/misc-progs/accountingctrl.c
===================================================================
--- ipcop/trunk/src/misc-progs/accountingctrl.c	2010-08-27 11:58:01 UTC (rev 4880)
+++ ipcop/trunk/src/misc-progs/accountingctrl.c	2010-08-27 15:01:58 UTC (rev 4881)
@@ -193,8 +193,9 @@
                     snprintf(command, STRING_SIZE, "/var/log/vnstat/%s", iface);
                     if (access(command, 0) == -1) {
                         verbose_printf(1, "Create DB for %s nick %s\n", iface, \
dev_id); +                        /* Silence error messages, error messages will \
appear when a DB is created */  snprintf(command, STRING_SIZE_LARGE, 
-                                "/usr/bin/vnstat --update --iface %s --nick %s", \
iface, dev_id); +                                "/usr/bin/vnstat --update --iface %s \
--nick %s > /dev/null", iface, dev_id);  safe_system(command);
                     }
                 }
@@ -212,7 +213,7 @@
                     verbose_printf(1, "Create DB for %s nick %s\n", \
                ipcop_ethernet.red_device[1], "RED_1");
                     /* Silence error messages, error messages will appear when a DB \
is created */  snprintf(command, STRING_SIZE_LARGE, 
-                            "/usr/bin/vnstat --update --iface %s --nick %s 2> \
/dev/null", ipcop_ethernet.red_device[1], "RED_1"); +                            \
"/usr/bin/vnstat --update --iface %s --nick %s > /dev/null", \
ipcop_ethernet.red_device[1], "RED_1");  safe_system(command);
                 }
             }


This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Ipcop-svn mailing list
Ipcop-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-svn


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic