Skip to content

Commit

Permalink
Skip README.md when reading in plugins dir
Browse files Browse the repository at this point in the history
  • Loading branch information
conscott authored and dflate committed Jan 18, 2019
1 parent 02a46fa commit 51f20bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lightningd/plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,12 @@ static const char *plugin_fullpath(const tal_t *ctx, const char *dir,
/* Must be executable by someone. */
if (!(st.st_mode & (S_IXUSR|S_IXGRP|S_IXOTH)))
return tal_free(fullname);

/* Someone actually runs this on NTFS, where everything apparently is
* executable! This prevents the most obvious damage. */
if (streq(basename, "README.md"))
return tal_free(fullname);

return fullname;
}

Expand Down

0 comments on commit 51f20bc

Please sign in to comment.