Ignore:
Timestamp:
May 26, 2009, 9:44:50 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/client/umount.cifs.c

    r133 r228  
    3434#include <string.h>
    3535#include <mntent.h>
     36#include "mount.h"
    3637
    3738#define UNMOUNT_CIFS_VERSION_MAJOR "0"
    38 #define UNMOUNT_CIFS_VERSION_MINOR "5"
     39#define UNMOUNT_CIFS_VERSION_MINOR "6"
    3940
    4041#ifndef UNMOUNT_CIFS_VENDOR_SUFFIX
     
    138139}
    139140
    140 static int lock_mtab(void)
    141 {
    142         int rc;
    143        
    144         rc = mknod(MOUNTED_LOCK , 0600, 0);
    145         if(rc == -1)
    146                 printf("\ngetting lock file %s failed with %s\n",MOUNTED_LOCK,
    147                                 strerror(errno));
    148                
    149         return rc;     
    150        
    151 }
    152 
    153 static void unlock_mtab(void)
    154 {
    155         unlink(MOUNTED_LOCK);   
    156 }
    157 
    158141static int remove_from_mtab(char * mountpoint)
    159142{
     
    169152        /* Do we first need to check if it is writable? */
    170153
     154        atexit(unlock_mtab);
    171155        if (lock_mtab()) {
    172156                printf("Mount table locked\n");
Note: See TracChangeset for help on using the changeset viewer.