https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r114035 | qwell | 2008-04-10 12:26:10 -0500 (Thu, 10 Apr 2008) | 10 lines
Only try to prefix language if we are not using an absolute path (suffix it otherwise).
en/var/lib/asterisk/sounds/blah.gsm is a very silly path.
(closes issue #12379)
Reported by: kuj
Patches:
12379-absolutepath.diff uploaded by qwell (license 4)
Tested by: kuj, qwell
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114036
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
return -1;
}
- if (ast_language_is_prefix) { /* new layout */
+ if (ast_language_is_prefix && !is_absolute_path(filename)) { /* new layout */
if (lang) {
snprintf(buf, buflen, "%s/%s", lang, filename);
} else {
return -1;
}
- if (is_absolute_path(filename)) {
- ast_copy_string(buf, filename, buflen);
- return ast_filehelper(buf, NULL, fmt, ACTION_EXISTS);
- }
-
/* We try languages in the following order:
* preflang (may include dialect)
* lang (preflang without dialect - if any)