-#include "busybox.h"
-
-/* The shell to run if none is given in the user's passwd entry. */
-#ifndef DEFAULT_SHELL
-#define DEFAULT_SHELL "/bin/sh"
-#endif
-
-/* Default user. */
-#define DEFAULT_USER "root"
-
-/* #define SYSLOG_SUCCESS */
-#define SYSLOG_FAILURE
-
-
-#if defined( SYSLOG_SUCCESS ) || defined( SYSLOG_FAILURE )
-/* Log the fact that someone has run su */
-
-# if defined( SYSLOG_SUCCESS ) && defined( SYSLOG_FAILURE )
-static void log_su (const char *successful, const char *old_user,
- const char *tty)
-{
- syslog ( LOG_NOTICE, "%s%s on %s", successful, old_user, tty);
-}
-# define log_su_successful(cu, u, tty) if(!cu) log_su("", u, tty)
-# define log_su_failure(cu, u, tty) if(!cu) log_su("FAILED SU ", u, tty)
-# else
- /* partial logging */
-# if !defined( SYSLOG_SUCESS )
-# define log_su_successful(cu, u, tty)
-# define log_su_failure(cu, u, t) if(!cu) \
- syslog(LOG_NOTICE, "FAILED SU %s on %s", u, t)
-# else
-# define log_su_successful(cu, u, t) if(!cu) \
- syslog(LOG_NOTICE, "%s on %s", u, t)
-# define log_su_failure(cu, u, tty)
-# endif
-# endif
-#else
- /* logging not used */
-# define log_su_successful(cu, u, tty)
-# define log_su_failure(cu, u, tty)
-#endif
-