Fix redirections with execute. Redirection consumed the remembered
input, and execute couldn't find it and mistakenly raised the tampering deity alarm. Closes #804644: (saved_bytes): New. (save_input): Set it. (forget_input): New. (seen_input): Don't discard, return a value for forget_input(). (save_input): Return a value for forget_input(), just because it makes sense. (input_to_forget, redir_authorized, prompt): Save value of seen_input() to new input_to_forget in redir_authorized(), pass it to forget_input() in prompt().
This commit is contained in:
parent
72b01c8ba1
commit
02a9af06a0
3 changed files with 54 additions and 8 deletions
|
@ -34,7 +34,8 @@
|
|||
#ifndef SECURE_H
|
||||
#define SECURE_H
|
||||
|
||||
extern void save_input(char *);
|
||||
extern int seen_input(char *);
|
||||
extern size_t save_input(char *);
|
||||
extern size_t seen_input(char *);
|
||||
extern void forget_input(size_t);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue