smbutil.c revision 4bff34e37def8a90f9194d81bc345c52ba20086a
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <err.h>
#include <sysexits.h>
#include <locale.h>
#include <libintl.h>
#include "common.h"
#ifndef EX_DATAERR
#define EX_DATAERR 1
#endif
static void help(void);
typedef void cmd_usage_t (void);
#define CMDFL_NO_KMOD 0x0001
static struct commands {
const char *name;
int flags;
} commands[] = {
};
static struct commands *
{
return (cmd);
}
return (NULL);
}
int
{
if (argc < 2)
else
return (0);
}
int
{
char *cp;
if (argc < 2)
help_usage();
return (0);
}
int
{
char *cp;
int opt;
extern void dropsuid();
(void) textdomain(TEXT_DOMAIN);
dropsuid();
if (argc < 2)
help();
switch (opt) {
case 'd':
smb_debug++;
break;
case 'h':
help();
/* NOTREACHED */
case 'v':
smb_verbose++;
break;
default:
help();
/* NOTREACHED */
}
}
help();
exit(1);
optind = 1;
}
static void
help(void) {
printf("\n");
" crypt slightly obscure password\n"
" help display help on specified subcommand\n"
/* " lc display active connections\n" */
" login login to specified host\n"
" logout logout from specified host\n"
" logoutall logout all users (requires privilege)\n"
" lookup resolve NetBIOS name to IP address\n"
/* " print print file to the specified remote printer\n" */
" status resolve IP address or DNS name to NetBIOS names\n"
" view list resources on specified host\n"
"\n"));
exit(1);
}
void
help_usage(void) {
exit(1);
}