version 1.8, 1998/07/10 15:45:15 |
version 1.9, 1999/12/22 22:30:20 |
|
|
|
|
#include <sys/param.h> |
#include <sys/param.h> |
#include <sys/file.h> |
#include <sys/file.h> |
|
#include <sys/stat.h> |
#include <stdio.h> |
#include <stdio.h> |
#include <stdlib.h> |
#include <stdlib.h> |
#include <string.h> |
#include <string.h> |
|
|
extern char *__progname; |
extern char *__progname; |
int ch; |
int ch; |
char domain[256]; |
char domain[256]; |
|
struct stat sb; |
|
|
oflag = 1; /* default to old "office" behavior */ |
oflag = 1; /* default to old "office" behavior */ |
|
|
|
|
argc -= optind; |
argc -= optind; |
argv += optind; |
argv += optind; |
|
|
/* if a domainname is set, increment mflag. */ |
/* If a domainname is set, increment mflag. */ |
if ((getdomainname(&domain, sizeof(domain)) == 0) && domain[0]) |
if ((getdomainname(&domain, sizeof(domain)) == 0) && domain[0]) |
mflag++; |
mflag++; |
|
/* If _PATH_MP_DB is larger than 1MB, increment mflag. */ |
|
if (stat(_PATH_MP_DB, &sb) == 0) { |
|
if (sb.st_size > 1048576) |
|
mflag++; |
|
} |
|
|
(void)time(&now); |
(void)time(&now); |
setpassent(1); |
setpassent(1); |