summaryrefslogtreecommitdiff
path: root/source3/utils/smbpasswd.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-11-18 22:04:24 +0000
committerJeremy Allison <jra@samba.org>1998-11-18 22:04:24 +0000
commit9579b9823707b9acadfd7bf24d1c540eacf53fc0 (patch)
tree41ddb7a17316ec66ea47bdc58e9b562fbf157222 /source3/utils/smbpasswd.c
parentbb9622bfa6bbbe74a6e4c032cf81501bcbff999d (diff)
downloadsamba-9579b9823707b9acadfd7bf24d1c540eacf53fc0.tar.gz
samba-9579b9823707b9acadfd7bf24d1c540eacf53fc0.tar.bz2
samba-9579b9823707b9acadfd7bf24d1c540eacf53fc0.zip
Added OSF1 changes to HEAD (-lsecurity etc.)
groupdb/groupdb.c: Fixed compile error caught by IRIX compiler. utils/smbpasswd.c: Fixed SunOS optind, optarg problem. Jeremy. (This used to be commit 30af39ae1edf51d5d06a1764982e5df431c142ac)
Diffstat (limited to 'source3/utils/smbpasswd.c')
-rw-r--r--source3/utils/smbpasswd.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c
index 3249103a27..519ca5a33d 100644
--- a/source3/utils/smbpasswd.c
+++ b/source3/utils/smbpasswd.c
@@ -23,6 +23,12 @@ extern pstring myhostname;
extern pstring global_myname;
extern int DEBUGLEVEL;
+/*
+ * Next two lines needed for SunOS and don't
+ * hurt anything else...
+ */
+extern char *optarg;
+extern int optind;
/*********************************************************
a strdup with exit
@@ -254,12 +260,6 @@ handle password changing for root
*************************************************************/
static int process_root(int argc, char *argv[])
{
- /*
- * Next two lines needed for SunOS and don't
- * hurt anything else...
- */
- extern char *optarg;
- extern int optind;
struct passwd *pwd;
int ch;
BOOL joining_domain = False;
@@ -449,12 +449,6 @@ handle password changing for non-root
*************************************************************/
static int process_nonroot(int argc, char *argv[])
{
- /*
- * Next two lines needed for SunOS and don't
- * hurt anything else...
- */
- extern char *optarg;
- extern int optind;
struct passwd *pwd = NULL;
int ch;
BOOL stdin_passwd_get = False;