diff options
Diffstat (limited to 'source3/passdb/smbpassfile.c')
-rw-r--r-- | source3/passdb/smbpassfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/passdb/smbpassfile.c b/source3/passdb/smbpassfile.c index a50bc93eacc..51eb799fc2c 100644 --- a/source3/passdb/smbpassfile.c +++ b/source3/passdb/smbpassfile.c @@ -66,9 +66,9 @@ BOOL trust_password_lock( char *domain, char *name, BOOL update) get_trust_account_file_name( domain, name, mac_file); - if((mach_passwd_fp = fopen(mac_file, "r+b")) == NULL) { + if((mach_passwd_fp = sys_fopen(mac_file, "r+b")) == NULL) { if(errno == ENOENT && update) { - mach_passwd_fp = fopen(mac_file, "w+b"); + mach_passwd_fp = sys_fopen(mac_file, "w+b"); } if(mach_passwd_fp == NULL) { |