version 1.131, 2014/04/17 07:55:43 |
version 1.132, 2014/10/20 23:27:14 |
|
|
#include <errno.h> |
#include <errno.h> |
#include <event.h> |
#include <event.h> |
#include <fcntl.h> |
#include <fcntl.h> |
|
#include <getopt.h> |
#include <locale.h> |
#include <locale.h> |
#include <paths.h> |
#include <paths.h> |
#include <pwd.h> |
#include <pwd.h> |
|
|
char *shell_cmd; |
char *shell_cmd; |
int debug_level; |
int debug_level; |
time_t start_time; |
time_t start_time; |
char socket_path[MAXPATHLEN]; |
char socket_path[PATH_MAX]; |
int login_shell; |
int login_shell; |
char *environ_path; |
char *environ_path; |
|
|
|
|
char * |
char * |
makesocketpath(const char *label) |
makesocketpath(const char *label) |
{ |
{ |
char base[MAXPATHLEN], realbase[MAXPATHLEN], *path, *s; |
char base[PATH_MAX], realbase[PATH_MAX], *path, *s; |
struct stat sb; |
struct stat sb; |
u_int uid; |
u_int uid; |
|
|
|
|
main(int argc, char **argv) |
main(int argc, char **argv) |
{ |
{ |
struct passwd *pw; |
struct passwd *pw; |
char *s, *path, *label, **var, tmp[MAXPATHLEN]; |
char *s, *path, *label, **var, tmp[PATH_MAX]; |
char in[256]; |
char in[256]; |
const char *home; |
const char *home; |
long long pid; |
long long pid; |