Changeset 389 for branches/samba-3.3.x/source
- Timestamp:
- Jan 21, 2010, 1:35:56 PM (16 years ago)
- Location:
- branches/samba-3.3.x/source
- Files:
-
- 5 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/lib/tdb/tools/tdbtool.c
r356 r389 37 37 char cmdline[1024]; 38 38 static int disable_mmap; 39 static bool createDbCmd; 39 40 40 41 enum commands { … … 210 211 if (tdb) tdb_close(tdb); 211 212 tdb = tdb_open(tdbname, 0, disable_mmap?TDB_NOMMAP:0, O_RDWR, 0600); 213 #ifdef __OS2__ 214 if (!tdb && !createDbCmd) { 215 #else 212 216 if (!tdb) { 217 #endif 213 218 printf("Could not open %s: %s\n", tdbname, strerror(errno)); 214 219 } … … 482 487 enum commands mycmd = CMD_HELP; 483 488 int cmd_len; 489 490 #ifdef __OS2__ 491 if (cmdname) { 492 #endif 484 493 485 494 if (cmdname && strlen(cmdname) == 0) { … … 495 504 } 496 505 } 506 507 #ifdef __OS2__ 508 } 509 #endif 497 510 498 511 switch (mycmd) { … … 640 653 arg2len = 0; 641 654 642 #if defined(__OS2__) 643 if (argv[1] && argc == 2) { 644 #else 655 #ifdef __OS2__ 656 int cnt = 1; 657 createDbCmd = false; 658 while (argv[cnt]) { 659 if (strncmp("create",argv[cnt],6) == 0) { 660 createDbCmd = true; 661 break; 662 } 663 cnt++; 664 } 665 #endif 666 645 667 if (argv[1]) { 646 #endif647 668 cmdname = "open"; 648 669 arg1 = argv[1]; … … 676 697 } 677 698 break; 678 #if defined(__OS2__)679 case 5:680 case 4:681 arg2 = convert_string(argv[3],&arg2len);682 case 3:683 arg1 = convert_string(argv[2],&arg1len);684 cmdname = argv[1];685 #else686 699 case 5: 687 700 arg2 = convert_string(argv[4],&arg2len); … … 690 703 case 3: 691 704 cmdname = argv[2]; 705 default: 706 #ifdef __OS2__ 707 if (!arg1) { 708 cmdname = NULL; 709 } 692 710 #endif 693 default:694 711 do_command(); 695 712 break; -
branches/samba-3.3.x/source/pkgconfig/netapi.pc
r370 r389 1 prefix=/ samba1 prefix=/usr/local/samba 2 2 exec_prefix=${prefix} 3 3 libdir=${exec_prefix}/lib -
branches/samba-3.3.x/source/pkgconfig/smbclient.pc
r370 r389 1 prefix=/ samba1 prefix=/usr/local/samba 2 2 exec_prefix=${prefix} 3 3 libdir=${exec_prefix}/lib -
branches/samba-3.3.x/source/pkgconfig/smbsharemodes.pc
r370 r389 1 prefix=/ samba1 prefix=/usr/local/samba 2 2 exec_prefix=${prefix} 3 3 libdir=${exec_prefix}/lib -
branches/samba-3.3.x/source/pkgconfig/wbclient.pc
r206 r389 1 prefix=/ samba1 prefix=/usr/local/samba 2 2 exec_prefix=${prefix} 3 3 libdir=${exec_prefix}/lib -
branches/samba-3.3.x/source/script/findsmb
r239 r389 1 #! u:/Perl/bin/perl.exe1 #!e:/Perl/bin/perl.exe 2 2 # 3 3 # Prints info on all smb responding machines on a subnet. … … 21 21 # 22 22 23 $SAMBABIN = "/ samba/bin";23 $SAMBABIN = "/usr/local/samba/bin"; 24 24 25 25 for ($i = 0; $i < 2; $i++) { # test for -d and -r options -
branches/samba-3.3.x/source/smbadduser
r206 r389 4 4 # 5 5 6 prefix=/ samba6 prefix=/usr/local/samba 7 7 exec_prefix=${prefix} 8 8 LIBDIR=${exec_prefix}/lib
Note:
See TracChangeset
for help on using the changeset viewer.