tools: include LICENSE file in manifest.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 9 Jul 2015 05:04:05 +0000 (14:34 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 9 Jul 2015 05:04:05 +0000 (14:34 +0930)
It's generally a symlink, so the lstat & S_ISREG tests were eliminating it.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
tools/manifest.c

index 6e246d8bf71de42a37f01ae4779102f57dd8d8ea..d3245ca527fa946e98e4ae639b04331ee57d1b59 100644 (file)
@@ -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);