2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Call systrace_attach() if FLAG_TRACE is set.

This commit is contained in:
Todd C. Miller
2004-09-24 17:17:29 +00:00
parent e3391d597b
commit aa8d212e3c
2 changed files with 8 additions and 0 deletions

5
sudo.c
View File

@@ -399,6 +399,11 @@ main(argc, argv, envp)
"please report this error at http://courtesan.com/sudo/bugs/");
}
#ifdef HAVE_SYSTRACE
if (ISSET(validated, FLAG_TRACE))
systrace_attach(getpid());
#endif
/* Override user's umask if configured to do so. */
if (def_umask != 0777)
(void) umask(def_umask);