Changeset 222 for branches/samba-3.3.x/source/client
- Timestamp:
- May 24, 2009, 7:45:16 AM (16 years ago)
- Location:
- branches/samba-3.3.x/source/client
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/client/clitar.c
r206 r222 1514 1514 if (strrchr_m(cliplist[i], '\\')) { 1515 1515 char *p; 1516 char saved_char; 1516 1517 char *saved_dir = talloc_strdup(ctx, 1517 1518 client_get_cur_dir()); … … 1532 1533 return 1; 1533 1534 } 1535 /* 1536 * Strip off the last \\xxx 1537 * xxx element of tarmac to set 1538 * it as current directory. 1539 */ 1534 1540 p = strrchr_m(tarmac, '\\'); 1535 1541 if (!p) { 1536 1542 return 1; 1537 1543 } 1544 saved_char = p[1]; 1538 1545 p[1] = '\0'; 1546 1539 1547 client_set_cur_dir(tarmac); 1548 1549 /* 1550 * Restore the character we 1551 * just replaced to 1552 * put the pathname 1553 * back as it was. 1554 */ 1555 p[1] = saved_char; 1540 1556 1541 1557 DEBUG(5, ("process_tar, do_list with tarmac: %s\n", tarmac)); -
branches/samba-3.3.x/source/client/mount.cifs.c
r221 r222 651 651 *filesys_flags &= ~MS_NOEXEC; 652 652 } else if (strncmp(data, "guest", 5) == 0) { 653 got_password=1; 653 user_name = (char *)calloc(1, 1); 654 got_user = 1; 655 got_password = 1; 654 656 } else if (strncmp(data, "ro", 2) == 0) { 655 657 *filesys_flags |= MS_RDONLY; … … 1080 1082 mountpoint = argv[2]; 1081 1083 } else { 1084 if ((strcmp (argv[1], "--version") == 0) || 1085 ((strcmp (argv[1], "-V") == 0))) { 1086 printf ("mount.cifs version: %s.%s%s\n", 1087 MOUNT_CIFS_VERSION_MAJOR, 1088 MOUNT_CIFS_VERSION_MINOR, 1089 MOUNT_CIFS_VENDOR_SUFFIX); 1090 exit (0); 1091 } 1082 1092 mount_cifs_usage(); 1083 1093 exit(EX_USAGE);
Note:
See TracChangeset
for help on using the changeset viewer.