Switch to unified view

a/src/utils/pathut.cpp b/src/utils/pathut.cpp
...
...
26
#include <pwd.h>
26
#include <pwd.h>
27
#include <math.h>
27
#include <math.h>
28
#include <errno.h>
28
#include <errno.h>
29
#include <sys/types.h>
29
#include <sys/types.h>
30
#include <sys/file.h>
30
#include <sys/file.h>
31
#include <sys/stat.h>
31
#include "safesysstat.h"
32
#include <glob.h>
32
#include <glob.h>
33
33
34
// Let's include all files where statfs can be defined and hope for no
34
// Let's include all files where statfs can be defined and hope for no
35
// conflict...
35
// conflict...
36
#ifdef HAVE_SYS_MOUNT_H 
36
#ifdef HAVE_SYS_MOUNT_H 
...
...
421
    if (lstat(path.c_str(), &st) < 0) 
421
    if (lstat(path.c_str(), &st) < 0) 
422
    return false;
422
    return false;
423
    if (S_ISDIR(st.st_mode))
423
    if (S_ISDIR(st.st_mode))
424
    return true;
424
    return true;
425
    return false;
425
    return false;
426
}
427
428
long long path_filesize(const string& path)
429
{
430
    struct stat st;
431
    if (stat(path.c_str(), &st) < 0) 
432
  return -1;
433
    return (long long)st.st_size;
426
}
434
}
427
435
428
// Allowed punctuation in the path part of an URI according to RFC2396
436
// Allowed punctuation in the path part of an URI according to RFC2396
429
// -_.!~*'():@&=+$,
437
// -_.!~*'():@&=+$,
430
/*
438
/*