Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 8a456fc0 authored by deuce's avatar deuce
Browse files

Use GLOB_MARK to add trailing / to directories in dir list.

parent d4143f85
......@@ -366,7 +366,7 @@ int filepick(uifcapi_t *api, char *title, struct file_pick *fp, char *dir, char
#else
//#error Need to do something about root paths (in get_file_opt_list() too!)
#endif
if(glob(dglob, 0, NULL, &dgl)!=0) {
if(glob(dglob, GLOB_MARK, NULL, &dgl)!=0) {
if(lastpath==NULL) {
fp->files=0;
retval=-1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment