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

Commit 11ed31dd authored by deuce's avatar deuce

If there are no wildcard chars in the filename or ext of the entered path,

and enter was used to exit the field, and it is not a multi-select,
the entered filename is to be returned.  Otherwise, the filename is
considered to be a very restrictive mask.
parent 31d40696
......@@ -504,7 +504,7 @@ int filepick(uifcapi_t *api, char *title, struct file_pick *fp, char *dir, char
if(strchr(fname,'*') !=NULL || strchr(fname,'?') !=NULL
|| strchr(ext,'*') !=NULL || strchr(ext,'?') !=NULL
|| !isdir(cfile)) {
|| (!isdir(cfile) && i!='\r' && i!='\n')) {
if(opts & UIFC_FP_MSKNOCHG) {
......@@ -517,6 +517,10 @@ int filepick(uifcapi_t *api, char *title, struct file_pick *fp, char *dir, char
else {
if((opts & UIFC_FP_MULTI)!=UIFC_FP_MULTI && (i=='\r' || i!='\n'))
if((currfield != CURRENT_PATH) || fieldmove)
if(isdir(cfile)) {
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