summaryrefslogtreecommitdiffstats
path: root/source/utils/smbpasswd.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-11-12 23:20:50 +0000
committerJeremy Allison <jra@samba.org>2002-11-12 23:20:50 +0000
commitf755711df8f74f9b8e8c1a2b0d07d02a931eeb89 (patch)
treec45545bb30ca33c746b86707475508601d91a3da /source/utils/smbpasswd.c
parentea4d122a8591288221e6f92a4182de82ab0b51e7 (diff)
downloadsamba-f755711df8f74f9b8e8c1a2b0d07d02a931eeb89.tar.gz
samba-f755711df8f74f9b8e8c1a2b0d07d02a931eeb89.tar.xz
samba-f755711df8f74f9b8e8c1a2b0d07d02a931eeb89.zip
Removed global_myworkgroup, global_myname, global_myscope. Added liberal
dashes of const. This is a rather large check-in, some things may break. It does compile though :-). Jeremy.
Diffstat (limited to 'source/utils/smbpasswd.c')
-rw-r--r--source/utils/smbpasswd.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/source/utils/smbpasswd.c b/source/utils/smbpasswd.c
index 0e822ee7ade..d9f36119f7c 100644
--- a/source/utils/smbpasswd.c
+++ b/source/utils/smbpasswd.c
@@ -19,7 +19,6 @@
#include "includes.h"
-extern pstring global_myname;
extern BOOL AllowDebugChange;
/*
@@ -585,13 +584,8 @@ int main(int argc, char **argv)
* set from the config file.
*/
- if (!*global_myname) {
- char *p;
- fstrcpy(global_myname, myhostname());
- p = strchr_m(global_myname, '.' );
- if (p) *p = 0;
- }
- strupper(global_myname);
+ if (!init_names())
+ return 1;
/* Check the effective uid - make sure we are not setuid */
if (is_setuid_root()) {