Changeset 338 for branches/samba-3.3.x/source
- Timestamp:
- Oct 8, 2009, 8:10:05 AM (16 years ago)
- Location:
- branches/samba-3.3.x/source
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/VERSION
r309 r338 26 26 SAMBA_VERSION_MAJOR=3 27 27 SAMBA_VERSION_MINOR=3 28 SAMBA_VERSION_RELEASE= 728 SAMBA_VERSION_RELEASE=8 29 29 30 30 ######################################################## … … 85 85 # # 86 86 ######################################################## 87 SAMBA_VERSION_VENDOR_SUFFIX= "eCS 1.1.beta2"87 SAMBA_VERSION_VENDOR_SUFFIX= 88 88 SAMBA_VERSION_VENDOR_PATCH= 89 89 -
branches/samba-3.3.x/source/client/mount.cifs.c
r223 r338 200 200 FILE * fs; 201 201 int i, length; 202 203 i = access(file_name, R_OK); 204 if (i) 205 return i; 206 202 207 fs = fopen(file_name,"r"); 203 208 if(fs == NULL) … … 322 327 323 328 if(filename != NULL) { 329 rc = access(filename, R_OK); 330 if (rc) { 331 fprintf(stderr, "mount.cifs failed: access check of %s failed: %s\n", 332 filename, strerror(errno)); 333 exit(EX_SYSERR); 334 } 324 335 file_descript = open(filename, O_RDONLY); 325 336 if(file_descript < 0) { … … 380 391 return 1; 381 392 data = *optionsp; 382 383 if(verboseflag)384 printf("parsing options: %s\n", data);385 393 386 394 /* BB fixme check for separator override BB */ … … 472 480 if (!value || !*value) { 473 481 if(got_password) { 474 printf("\npassword specified twice, ignoring second\n");482 fprintf(stderr, "\npassword specified twice, ignoring second\n"); 475 483 } else 476 484 got_password = 1; 477 } else if (strnlen(value, 17) < 17) { 478 if(got_password) 479 printf("\nmount.cifs warning - password specified twice\n"); 480 got_password = 1; 485 } else if (strnlen(value, MOUNT_PASSWD_SIZE) < MOUNT_PASSWD_SIZE) { 486 if (got_password) { 487 fprintf(stderr, "\nmount.cifs warning - password specified twice\n"); 488 } else { 489 mountpassword = strndup(value, MOUNT_PASSWD_SIZE); 490 if (!mountpassword) { 491 fprintf(stderr, "mount.cifs error: %s", strerror(ENOMEM)); 492 SAFE_FREE(out); 493 return 1; 494 } 495 got_password = 1; 496 } 481 497 } else { 482 printf("password too long\n");498 fprintf(stderr, "password too long\n"); 483 499 SAFE_FREE(out); 484 500 return 1; 485 501 } 502 goto nocopy; 486 503 } else if (strncmp(data, "sec", 3) == 0) { 487 504 if (value) { … … 1371 1388 } 1372 1389 } 1373 if(mountpassword) {1374 /* Commas have to be doubled, or else they will1375 look like the parameter separator */1376 /* if(sep is not set)*/1377 if(retry == 0)1378 check_for_comma(&mountpassword);1379 strlcat(options,",pass=",options_size);1380 strlcat(options,mountpassword,options_size);1381 }1382 1390 1383 1391 strlcat(options,",ver=",options_size); … … 1392 1400 strlcat(options,prefixpath,options_size); /* no need to cat the / */ 1393 1401 } 1394 if(verboseflag)1395 printf("\nmount.cifs kernel mount options %s \n",options);1396 1402 1397 1403 /* convert all '\\' to '/' in share portion so that /proc/mounts looks pretty */ … … 1424 1430 } 1425 1431 } 1432 1433 if(verboseflag) 1434 fprintf(stderr, "\nmount.cifs kernel mount options: %s", options); 1435 1436 if (mountpassword) { 1437 /* 1438 * Commas have to be doubled, or else they will 1439 * look like the parameter separator 1440 */ 1441 if(retry == 0) 1442 check_for_comma(&mountpassword); 1443 strlcat(options,",pass=",options_size); 1444 strlcat(options,mountpassword,options_size); 1445 if (verboseflag) 1446 fprintf(stderr, ",pass=********"); 1447 } 1448 1449 if (verboseflag) 1450 fprintf(stderr, "\n"); 1426 1451 1427 1452 if (!fakemnt && mount(dev_name, mountpoint, "cifs", flags, options)) { -
branches/samba-3.3.x/source/include/smb.h
r222 r338 716 716 struct timeval end_time; /* When does this time out? */ 717 717 bool encrypted; 718 bool processed; 718 719 DATA_BLOB buf; 719 720 DATA_BLOB private_data; -
branches/samba-3.3.x/source/include/version.h
r309 r338 2 2 #define SAMBA_VERSION_MAJOR 3 3 3 #define SAMBA_VERSION_MINOR 3 4 #define SAMBA_VERSION_RELEASE 7 5 #define SAMBA_VERSION_OFFICIAL_STRING "3.3.7" 6 #define SAMBA_VERSION_VENDOR_SUFFIX "eCS 1.1.beta2" 4 #define SAMBA_VERSION_RELEASE 8 5 #define SAMBA_VERSION_OFFICIAL_STRING "3.3.8" 6 #define SAMBA_VERSION_VENDOR_SUFFIX "eCS 1.1.x-TEST" 7 #define SAMBA_VERSION_VENDOR_PATCH 20091006 8 #define SAMBA_VERSION_VENDOR_PATCH_STRING "20091006" 7 9 #define SAMBA_VERSION_STRING samba_version_string() -
branches/samba-3.3.x/source/param/loadparm.c
r308 r338 5917 5917 int i; 5918 5918 5919 if (pszHomename == NULL || user == NULL || pszHomedir == NULL || 5920 pszHomedir[0] == '\0') { 5921 return false; 5922 } 5923 5919 5924 i = add_a_service(ServicePtrs[iDefaultService], pszHomename); 5920 5925 … … 7890 7895 home = get_user_home_dir(talloc_tos(), p); 7891 7896 7892 if (home && home s >= 0)7897 if (home && home[0] && homes >= 0) 7893 7898 lp_add_home(p, homes, p, home); 7894 7899 -
branches/samba-3.3.x/source/smbd/process.c
r223 r338 439 439 msg->end_time = end_time; 440 440 msg->encrypted = req->encrypted; 441 msg->processed = false; 441 442 442 443 if (private_data) { … … 494 495 (unsigned int)msg_mid )); 495 496 if (mid == msg_mid) { 497 498 if (pml->processed) { 499 /* A processed message should not be 500 * rescheduled. */ 501 DEBUG(0,("schedule_deferred_open_smb_message: LOGIC ERROR " 502 "message mid %u was already processed\n", 503 (unsigned int)msg_mid )); 504 continue; 505 } 506 496 507 DEBUG(10,("schedule_deferred_open_smb_message: scheduling mid %u\n", 497 508 mid )); … … 508 519 509 520 /**************************************************************************** 510 Return true if this mid is on the deferred queue .521 Return true if this mid is on the deferred queue and was not yet processed. 511 522 ****************************************************************************/ 512 523 … … 516 527 517 528 for (pml = deferred_open_queue; pml; pml = pml->next) { 518 if (SVAL(pml->buf.data,smb_mid) == mid ) {529 if (SVAL(pml->buf.data,smb_mid) == mid && !pml->processed) { 519 530 return True; 520 531 } … … 785 796 know this is a retry. */ 786 797 DEBUG(5,("receive_message_or_smb: returning deferred open smb message.\n")); 798 799 /* Mark the message as processed so this is not 800 * re-processed in error. */ 801 msg->processed = true; 787 802 return NT_STATUS_OK; 788 803 } … … 1429 1444 if (!change_to_user(conn,session_tag)) { 1430 1445 reply_nterror(req, NT_STATUS_DOS(ERRSRV, ERRbaduid)); 1431 remove_deferred_open_smb_message(req->mid);1432 1446 return conn; 1433 1447 } … … 1494 1508 static void construct_reply(char *inbuf, int size, size_t unread_bytes, bool encrypted) 1495 1509 { 1510 struct pending_message_list *pml = NULL; 1496 1511 uint8 type = CVAL(inbuf,smb_com); 1497 1512 connection_struct *conn; … … 1508 1523 1509 1524 conn = switch_message(type, req, size); 1525 1526 /* If this was a deferred message and it's still there and 1527 * was processed, remove it. */ 1528 pml = get_open_deferred_message(req->mid); 1529 if (pml && pml->processed) { 1530 remove_deferred_open_smb_message(req->mid); 1531 } 1510 1532 1511 1533 if (req->unread_bytes) { -
branches/samba-3.3.x/source/smbd/service.c
r281 r338 55 55 const char *s = connectpath; 56 56 bool start_of_name_component = true; 57 58 if (connectpath == NULL || connectpath[0] == '\0') { 59 return false; 60 } 57 61 58 62 destname = SMB_STRDUP(connectpath); … … 336 340 int iHomeService; 337 341 338 if (!service || !homedir )342 if (!service || !homedir || homedir[0] == '\0') 339 343 return -1; 340 344
Note:
See TracChangeset
for help on using the changeset viewer.