Ignore:
Timestamp:
May 24, 2009, 7:45:16 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3 branch to 3.3.2

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  
    15141514                                        if (strrchr_m(cliplist[i], '\\')) {
    15151515                                                char *p;
     1516                                                char saved_char;
    15161517                                                char *saved_dir = talloc_strdup(ctx,
    15171518                                                                        client_get_cur_dir());
     
    15321533                                                        return 1;
    15331534                                                }
     1535                                                /*
     1536                                                 * Strip off the last \\xxx
     1537                                                 * xxx element of tarmac to set
     1538                                                 * it as current directory.
     1539                                                 */
    15341540                                                p = strrchr_m(tarmac, '\\');
    15351541                                                if (!p) {
    15361542                                                        return 1;
    15371543                                                }
     1544                                                saved_char = p[1];
    15381545                                                p[1] = '\0';
     1546
    15391547                                                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;
    15401556
    15411557                                                DEBUG(5, ("process_tar, do_list with tarmac: %s\n", tarmac));
  • branches/samba-3.3.x/source/client/mount.cifs.c

    r221 r222  
    651651                        *filesys_flags &= ~MS_NOEXEC;
    652652                } 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;
    654656                } else if (strncmp(data, "ro", 2) == 0) {
    655657                        *filesys_flags |= MS_RDONLY;
     
    10801082                mountpoint = argv[2];
    10811083        } 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                }
    10821092                mount_cifs_usage();
    10831093                exit(EX_USAGE);
Note: See TracChangeset for help on using the changeset viewer.