summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--lib/util.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/util.cc b/lib/util.cc
index 74039c6..069590b 100644
--- a/lib/util.cc
+++ b/lib/util.cc
@@ -1,14 +1,15 @@
1#include <sys/types.h> 1#include <sys/types.h>
2#include <sys/stat.h> 2#include <sys/stat.h>
3#include <cassert>
3#include <konforka/util.h> 4#include <konforka/util.h>
4 5
5namespace konforka { 6namespace konforka {
6 7
7 /* 8 /*
8 * XXX: this code is borrowed from sitecing as is, although it should be optimized. 9 * XXX: this code is borrowed from sitecing as is, although it should be optimized.
9 */ 10 */
10 11
11 string normalize_path(const string& p,int o) { 12 string normalize_path(const string& p,int o) {
12 const char *s = p.c_str(); 13 const char *s = p.c_str();
13 if( s[0]=='.' && s[1]=='/' ) 14 if( s[0]=='.' && s[1]=='/' )
14 s += 2; // skip leading './' 15 s += 2; // skip leading './'