mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 18:57:06 +01:00
Skip README.md when reading in plugins dir
This commit is contained in:
parent
a565915d08
commit
3d270fcca6
1 changed files with 6 additions and 0 deletions
|
@ -884,6 +884,12 @@ static const char *plugin_fullpath(const tal_t *ctx, const char *dir,
|
||||||
/* Must be executable by someone. */
|
/* Must be executable by someone. */
|
||||||
if (!(st.st_mode & (S_IXUSR|S_IXGRP|S_IXOTH)))
|
if (!(st.st_mode & (S_IXUSR|S_IXGRP|S_IXOTH)))
|
||||||
return tal_free(fullname);
|
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;
|
return fullname;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue