~ubuntu-branches/ubuntu/trusty/dansguardian/trusty

« back to all changes in this revision

Viewing changes to src/contentscanners/commandlinescan.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Wirt, Thomas Viehmann
  • Date: 2008-10-13 09:29:35 UTC
  • mfrom: (1.1.7 upstream) (7.1.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20081013092935-g8uz3kgfjs37ikgv
Tags: 2.9.9.7-2
[ Thomas Viehmann ]
OptionContainer.cpp: If you need to iterate through all lines in the
config file to find a field, at least don't abuse the configfile deque
by accessing it as if it was an array with signed index.
Works way better on arm, too, i.e. closes: #493047.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
 
21
21
// INCLUDES
 
22
#ifdef HAVE_CONFIG_H
 
23
        #include "dgconfig.h"
 
24
#endif
22
25
 
23
26
#include "../ContentScanner.hpp"
24
27
#include "../UDSocket.hpp"
29
32
#include <sys/time.h>
30
33
#include <sys/types.h>
31
34
#include <sys/stat.h>
 
35
#include <sys/wait.h>
32
36
#include <unistd.h>
33
37
#include <list>
34
38