mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-06 21:51:30 +00:00
added x magic var
This commit is contained in:
+6
-5
@@ -683,9 +683,9 @@ void config_magic_table_fill(char *filename, char **magic_table) {
|
||||
return;
|
||||
}
|
||||
|
||||
char *colon = uwsgi_get_last_char(filename, ':');
|
||||
if (colon) {
|
||||
*colon = 0;
|
||||
char *section = uwsgi_get_last_char(filename, ':');
|
||||
if (section) {
|
||||
*section = 0;
|
||||
}
|
||||
|
||||
// we have a special case for symlinks
|
||||
@@ -743,8 +743,9 @@ void config_magic_table_fill(char *filename, char **magic_table) {
|
||||
if (uwsgi_get_last_char(magic_table['s'], '.'))
|
||||
magic_table['n'] = uwsgi_concat2n(magic_table['s'], uwsgi_get_last_char(magic_table['s'], '.') - magic_table['s'], "", 0);
|
||||
|
||||
if (colon) {
|
||||
*colon = ':';
|
||||
if (section) {
|
||||
magic_table['x'] = section+1;
|
||||
*section = ':';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user