Changeset 740 for vendor/current/source3/utils/net_rap.c
- Timestamp:
- Nov 14, 2012, 12:59:34 PM (13 years ago)
- File:
-
- 1 edited
-
vendor/current/source3/utils/net_rap.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/utils/net_rap.c
r414 r740 24 24 25 25 #include "includes.h" 26 27 26 28 #include "utils/net.h" 29 30 27 31 28 32 /* The following messages were for error checking that is not properly … … 227 231 int ret; 228 232 229 RAP_SHARE_INFO_2 sinfo;233 _2 sinfo; 230 234 char *p; 231 235 char *sharename; … … 246 250 } 247 251 *p = 0; 248 strlcpy( sinfo.share_name, sharename, sizeof(sinfo.share_name));252 strlcpy(sinfo.share_name, sharename, sizeof(sinfo.share_name)); 249 253 sinfo.reserved1 = '\0'; 250 254 sinfo.share_type = 0; 251 sinfo.comment = smb_xstrdup(c->opt_comment);255 sinfo.comment = ; 252 256 sinfo.perms = 0; 253 257 sinfo.maximum_users = c->opt_maxusers; … … 813 817 struct cli_state *cli; 814 818 int ret; 815 RAP_USER_INFO_1 userinfo;819 _1 userinfo; 816 820 817 821 if (argc == 0 || c->display_usage) { … … 822 826 return -1; 823 827 824 safe_strcpy( userinfo.user_name, argv[0], sizeof(userinfo.user_name)-1);825 if (c->opt_flags == -1)828 safe_strcpy(userinfo.user_name, argv[0], sizeof(userinfo.user_name)-1); 829 if (c->opt_flags == ) 826 830 c->opt_flags = 0x21; 827 831 … … 957 961 struct cli_state *cli; 958 962 int ret; 959 RAP_GROUP_INFO_1 grinfo;963 _1 grinfo; 960 964 961 965 if (argc == 0 || c->display_usage) { … … 967 971 968 972 /* BB check for length 21 or smaller explicitly ? BB */ 969 safe_strcpy( grinfo.group_name, argv[0], sizeof(grinfo.group_name)-1);973 safe_strcpy(grinfo.group_name, argv[0], sizeof(grinfo.group_name)-1); 970 974 grinfo.reserved1 = '\0'; 971 975 grinfo.comment = smb_xstrdup(c->opt_comment ? c->opt_comment : "");
Note:
See TracChangeset
for help on using the changeset viewer.
