Changeset 864


Ignore:
Timestamp:
May 15, 2014, 9:11:05 PM (11 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: make sure locking file is created if needed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/lib/tdb/common/open.c

    r862 r864  
    688688        char activeLockName[_MAX_PATH];
    689689        sprintf(activeLockName, "%s_AL", name);
    690         tdb->hActiveLock = open(activeLockName, tdb->open_flags, mode);
     690        tdb->hActiveLock = open(activeLockName, tdb->open_flags | O_CREAT, mode);
    691691        if (tdb->hActiveLock == -1) {
    692                 TDB_LOG((tdb, TDB_DEBUG_ERROR, "os2_crtSem: cannot create activeLock %s called from %s\n",
    693                         activeLockName, truncate?"tdb_open_ex":"tdb_reopen"));
     692                TDB_LOG((tdb, TDB_DEBUG_ERROR, "os2_crtActiveLock: cannot create activeLock %s called from %s %s\n",
     693                        activeLockName, truncate?"tdb_open_ex":"tdb_reopen", strerror(errno)));
    694694                errno = EINVAL;
    695695                return -1;
Note: See TracChangeset for help on using the changeset viewer.