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

Update Samba 3.3 to 3.3.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/client/mount.cifs.c

    r206 r221  
    8686const char *thisprogram;
    8787int verboseflag = 0;
     88int fakemnt = 0;
    8889static int got_password = 0;
    8990static int got_user = 0;
     
    10311032        char * temp;
    10321033        char * dev_name;
    1033         int rc;
     1034        int rc = 0;
    10341035        int rsize = 0;
    10351036        int wsize = 0;
     
    11041105                        exit(EX_USAGE);
    11051106                case 'n':
    1106                     ++nomtab;
    1107                     break;
     1107                        ++nomtab;
     1108                        break;
    11081109                case 'b':
    11091110#ifdef MS_BIND
     
    12091210                        break;
    12101211                case 't':
     1212                        break;
     1213                case 'f':
     1214                        ++fakemnt;
    12111215                        break;
    12121216                default:
     
    14111415        }
    14121416
    1413         if (mount(dev_name, mountpoint, "cifs", flags, options)) {
     1417        if (!fakemnt && mount(dev_name, mountpoint, "cifs", flags, options)) {
    14141418                switch (errno) {
    14151419                case ECONNREFUSED:
     
    14411445        }
    14421446
     1447        if (nomtab)
     1448                goto mount_exit;
    14431449        atexit(unlock_mtab);
    14441450        rc = lock_mtab();
Note: See TracChangeset for help on using the changeset viewer.