Changeset 274 for branches/samba-3.3.x/source/utils
- Timestamp:
- Jun 17, 2009, 2:19:52 PM (16 years ago)
- Location:
- branches/samba-3.3.x/source/utils
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/utils/net_dom.c
r206 r274 39 39 const char *password = NULL; 40 40 uint32_t unjoin_flags = NETSETUP_ACCT_DELETE | 41 NETSETUP_JOIN_DOMAIN; 41 NETSETUP_JOIN_DOMAIN | 42 NETSETUP_IGNORE_UNSUPPORTED_FLAGS; 42 43 struct cli_state *cli = NULL; 43 44 bool do_reboot = false; -
branches/samba-3.3.x/source/utils/net_groupmap.c
r206 r274 620 620 /* The case (opt_domaingroup && opt_localgroup) was tested for above */ 621 621 622 if ( strlen(c->opt_comment) > 0)622 if ((c->opt_comment != NULL) && (strlen(c->opt_comment) > 0)) { 623 623 fstrcpy(map.comment, c->opt_comment); 624 625 if (strlen(c->opt_newntname) > 0) 624 } 625 626 if ((c->opt_newntname != NULL) && (strlen(c->opt_newntname) > 0)) { 626 627 fstrcpy(map.nt_name, c->opt_newntname); 628 } 627 629 628 630 if (grp != NULL) -
branches/samba-3.3.x/source/utils/net_rap.c
r206 r274 823 823 userinfo.userflags = c->opt_flags; 824 824 userinfo.reserved1 = '\0'; 825 userinfo.comment = smb_xstrdup(c->opt_comment);825 userinfo.comment = smb_xstrdup(c->opt_comment ? c->opt_comment : ""); 826 826 userinfo.priv = 1; 827 827 userinfo.home_dir = NULL; … … 963 963 safe_strcpy(grinfo.group_name, argv[0], sizeof(grinfo.group_name)-1); 964 964 grinfo.reserved1 = '\0'; 965 grinfo.comment = smb_xstrdup(c->opt_comment );965 grinfo.comment = smb_xstrdup(c->opt_comment ? c->opt_comment : ""); 966 966 967 967 ret = cli_NetGroupAdd(cli, &grinfo); -
branches/samba-3.3.x/source/utils/smbget.c
r221 r274 583 583 {"keep-permissions", 'P', POPT_ARG_NONE, &keep_permissions, 'P', "Keep permissions" }, 584 584 {"blocksize", 'b', POPT_ARG_INT, &blocksize, 'b', "Change number of bytes in a block"}, 585 {"rcfile", 'f', POPT_ARG_STRING, NULL, 0, "Use specified rc file"},585 {"rcfile", 'f', POPT_ARG_STRING, NULL, 'f', "Use specified rc file"}, 586 586 POPT_AUTOHELP 587 587 POPT_TABLEEND
Note:
See TracChangeset
for help on using the changeset viewer.