X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ffiletarget.cpp;h=7ba81b28cf5a626340c3a9de707b23846c9688d1;hb=05a2b9dabd01414e9e9a91f9d69babaca4ccb32d;hp=e7cfc6c10ce638fcd643a3158ab7d4fcff3eb72e;hpb=20994a6f4802f2dbcf01888d0e1996edf554ade5;p=builder.git diff --git a/source/filetarget.cpp b/source/filetarget.cpp index e7cfc6c..7ba81b2 100644 --- a/source/filetarget.cpp +++ b/source/filetarget.cpp @@ -1,7 +1,7 @@ /* $Id$ This file is part of builder -Copyright © 2009 Mikko Rasa, Mikkosoft Productions +Copyright © 2009-2010 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ @@ -23,7 +23,7 @@ FileTarget::FileTarget(Builder &b, const Package *p, const FS::Path &a): builder.add_target(this); struct stat st; - if(!FS::stat(path, st)) + if(!FS::lstat(path, st)) { mtime = Time::TimeStamp::from_unixtime(st.st_mtime); size = st.st_size;