options: Add wide_links config option.

In some environments, it makes sense to validate that symlink destinations
remain inside user-defined media_dirs.  Make this behavior configurable.
This commit is contained in:
Justin Maggard
2015-12-21 14:31:52 -08:00
parent 4ec6cd0053
commit c4166b3e77
7 changed files with 86 additions and 11 deletions

View File

@ -191,6 +191,7 @@ extern uint32_t runtime_flags;
#define NO_PLAYLIST_MASK 0x0008
#define SYSTEMD_MASK 0x0010
#define MERGE_MEDIA_DIRS_MASK 0x0020
#define WIDE_LINKS_MASK 0x0040
#define SETFLAG(mask) runtime_flags |= mask
#define GETFLAG(mask) (runtime_flags & mask)