summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2015-07-09 14:34:05 +0930
committerRusty Russell <rusty@rustcorp.com.au>2015-07-09 14:34:05 +0930
commite64379526f704823730a74c8776de5384ff6ee10 (patch)
tree9a052eaef0b727c7f0d308d12cfddc9c96004dc4
parent7a7fa0848182fa4ab8d5507cc01fdde45b9c09a3 (diff)
tools: include LICENSE file in manifest.
It's generally a symlink, so the lstat & S_ISREG tests were eliminating it. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-rw-r--r--tools/manifest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/manifest.c b/tools/manifest.c
index 6e246d8b..d3245ca5 100644
--- a/tools/manifest.c
+++ b/tools/manifest.c
@@ -112,8 +112,8 @@ static void add_files(struct manifest *m, const char *base, const char *subdir)
f = new_ccan_file(m, m->dir,
subdir ? path_join(m, subdir, ent->d_name)
: ent->d_name);
- if (lstat(f->fullname, &st) != 0)
- err(1, "lstat %s", f->fullname);
+ if (stat(f->fullname, &st) != 0)
+ err(1, "stat %s", f->fullname);
if (S_ISDIR(st.st_mode)) {
size_t len = tal_count(subs);