Update the cwd for log_subcmds too.
Fixes a problem for intercept_method=trace when running a relative command from a different directory than what sudo ws started from. GitHub issue #194
This commit is contained in:
@@ -50,6 +50,6 @@ struct intercept_closure {
|
||||
};
|
||||
|
||||
void intercept_closure_reset(struct intercept_closure *closure);
|
||||
bool intercept_check_policy(const char *command, int argc, char **argv, int envc, char **envp, const char *runcwd, void *closure);
|
||||
bool intercept_check_policy(const char *command, int argc, char **argv, int envc, char **envp, const char *runcwd, int *oldcwd, void *closure);
|
||||
|
||||
#endif /* SUDO_EXEC_INTERCEPT_H */
|
||||
|
Reference in New Issue
Block a user