Commit e977d471 authored by jan.koester's avatar jan.koester
Browse files

tes

parent 15fcd4b8
Loading
Loading
Loading
Loading
Loading
+3 −2
Changes for src/backends/file.cpp: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@
#include <windows.h>
#else
#include <unistd.h>
#include <fcntl.h>
#include <sys/file.h>
#include <sys/stat.h>
#endif
@@ -104,9 +105,9 @@ authdb::File::File(const char* path,size_t version,const char *domain){
        throw AuthBackendError(err.c_str());
    }
#else
    if( (_FileDes=::open(path,O_RDWR)) <0){
    if( (_FileDes=open(path,O_RDWR)) <0){

        _FileDes=::open(path,O_CREAT|O_RDWR,0660);
        _FileDes=open(path,O_CREAT|O_RDWR,0660);

        AuthHeader head;