Skip to content

Commit

Permalink
remove PRIVSEP macros for osx
Browse files Browse the repository at this point in the history
  • Loading branch information
djmdjm committed Jun 4, 2024
1 parent 8785491 commit cc80d51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions session.c
Original file line number Diff line number Diff line change
Expand Up @@ -706,13 +706,13 @@ do_exec(struct ssh *ssh, Session *s, const char *command)

#ifdef SSH_AUDIT_EVENTS
if (command != NULL)
PRIVSEP(audit_run_command(command));
mm_audit_run_command(command);
else if (s->ttyfd == -1) {
char *shell = s->pw->pw_shell;

if (shell[0] == '\0') /* empty shell means /bin/sh */
shell =_PATH_BSHELL;
PRIVSEP(audit_run_command(shell));
mm_audit_run_command(shell);
}
#endif
if (s->ttyfd != -1)
Expand Down

0 comments on commit cc80d51

Please sign in to comment.