summaryrefslogtreecommitdiff
path: root/fstree.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2019-10-09 14:20:21 +0400
committerDavid Gibson <david@gibson.dropbear.id.au>2019-10-14 17:07:10 +1100
commitbc876708ab1dbb41f3890fa801b69e9ca01cefa1 (patch)
tree37fa893869954001448ee5b7ee701b4895ec9719 /fstree.c
parent4c3c4ccb9916411aaa682cb60acfbfd7d6232a33 (diff)
downloaddevice-tree-compiler-bc876708ab1dbb41f3890fa801b69e9ca01cefa1.tar.gz
fstree: replace lstat with stat
Fixes mingw cross-compilation. lstat() doesn't exist on win32. It seems to me that stat() is the right function there, to return informations about the file it refers to. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20191009102025.10179-7-marcandre.lureau@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'fstree.c')
-rw-r--r--fstree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fstree.c b/fstree.c
index 9871689..5e59594 100644
--- a/fstree.c
+++ b/fstree.c
@@ -30,7 +30,7 @@ static struct node *read_fstree(const char *dirname)
tmpname = join_path(dirname, de->d_name);
- if (lstat(tmpname, &st) < 0)
+ if (stat(tmpname, &st) < 0)
die("stat(%s): %s\n", tmpname, strerror(errno));
if (S_ISREG(st.st_mode)) {