forked from mirrors/tftp-hpa-google
remap: change the mode argument from a boolean to a character
Instead of taking a boolean value for get/put, pass a character; this allows us to extend the number of possibilities in the future. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
parent
e7a7b19483
commit
0b5732e263
3 changed files with 11 additions and 15 deletions
|
@ -1388,7 +1388,8 @@ static char *rewrite_access(char *filename, int mode, const char **msg)
|
|||
{
|
||||
if (rewrite_rules) {
|
||||
char *newname =
|
||||
rewrite_string(filename, rewrite_rules, mode != RRQ,
|
||||
rewrite_string(filename, rewrite_rules,
|
||||
mode != RRQ ? 'P' : 'G',
|
||||
rewrite_macros, msg);
|
||||
filename = newname;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue