]> git.tdb.fi Git - builder.git/blobdiff - source/filetarget.cpp
Add Symlink target and associated action
[builder.git] / source / filetarget.cpp
index e7cfc6c10ce638fcd643a3158ab7d4fcff3eb72e..7ba81b28cf5a626340c3a9de707b23846c9688d1 100644 (file)
@@ -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;