diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-03-28 12:51:17 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-04-05 02:39:08 +0200 |
commit | b74fe73a6fb5862121235f18bc1dfe538e6ceaed (patch) | |
tree | 34a3f09ad3f0565a90fe13e735daecb44e779795 /source3/passdb | |
parent | d166b798529dab4538054d0b68797c0cc17f34de (diff) | |
download | samba-b74fe73a6fb5862121235f18bc1dfe538e6ceaed.tar.gz samba-b74fe73a6fb5862121235f18bc1dfe538e6ceaed.tar.bz2 samba-b74fe73a6fb5862121235f18bc1dfe538e6ceaed.zip |
build: Remove sys_fopen wrapper
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/pdb_smbpasswd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/passdb/pdb_smbpasswd.c b/source3/passdb/pdb_smbpasswd.c index 7f82c1f7cd..5fda363950 100644 --- a/source3/passdb/pdb_smbpasswd.c +++ b/source3/passdb/pdb_smbpasswd.c @@ -237,14 +237,14 @@ creating file %s\n", pfile)); for(race_loop = 0; race_loop < 5; race_loop++) { DEBUG(10, ("startsmbfilepwent_internal: opening file %s\n", pfile)); - if((fp = sys_fopen(pfile, open_mode)) == NULL) { + if((fp = fopen(pfile, open_mode)) == NULL) { /* * If smbpasswd file doesn't exist, then create new one. This helps to avoid * confusing error msg when adding user account first time. */ if (errno == ENOENT) { - if ((fp = sys_fopen(pfile, "a+")) != NULL) { + if ((fp = fopen(pfile, "a+")) != NULL) { DEBUG(0, ("startsmbfilepwent_internal: file %s did not \ exist. File successfully created.\n", pfile)); } else { @@ -762,7 +762,7 @@ static bool mod_smbfilepwd_entry(struct smbpasswd_privates *smbpasswd_state, con } DEBUG(10, ("mod_smbfilepwd_entry: opening file %s\n", pfile)); - fp = sys_fopen(pfile, "r+"); + fp = fopen(pfile, "r+"); if (fp == NULL) { DEBUG(0, ("mod_smbfilepwd_entry: unable to open file %s\n", pfile)); |