Roxen.git / server / modules / filesystems / filesystem.pike

version» Context lines:

Roxen.git/server/modules/filesystems/filesystem.pike:266:    access_as_user = query("access_as_user");    access_as_user_throw = query("access_as_user_throw");    access_as_user_db =    my_configuration()->find_user_database( query("access_as_user_db") );    dotfiles = query(".files");    path = roxen_path(encode_path(query("searchpath")));    mountpoint = query("mountpoint");    stat_cache = query("stat_cache");    internal_files = map(query("internal_files"), encode_path);    +  if (sizeof(path) && !has_suffix(path, "/")) path += "/";    -  +    #if constant(System.normalize_path)    if (catch { -  if ((<'/','\\'>)[path[-1]]) { +     normalized_path = System.normalize_path(path + "."); -  } else { -  normalized_path = System.normalize_path(path); -  } +     }) { -  report_error(LOCALE(1, "Path verification of %s failed.\n"), mountpoint); +  report_error(LOCALE(1, "Path normalization of %s: %s failed.\n"), +  path, mountpoint);    normalized_path = path;    }   #else /* !constant(System.normalize_path) */    normalized_path = path;   #endif /* constant(System.normalize_path) */ -  if ((normalized_path == "") || !(<'/','\\'>)[normalized_path[-1]]) { +  if ((normalized_path != "") && !(<'/','\\'>)[normalized_path[-1]]) {   #ifdef __NT__    normalized_path += "\\";   #else /* !__NT__ */    normalized_path += "/";   #endif /* __NT__ */    }    FILESYSTEM_WERR("Online at "+query("mountpoint")+" (path="+path+")");    cache_expire("stat_cache");   }