summaryrefslogtreecommitdiffstats
path: root/source/passdb/smbpass.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-05-14 03:20:42 +0000
committerJeremy Allison <jra@samba.org>1998-05-14 03:20:42 +0000
commit5bf17840ac7d65d08dd3fdfe8b789010488f6808 (patch)
tree34ebc45d2c8da0b760d0219ccfade75b7d63b4fe /source/passdb/smbpass.c
parent134d6fa79c1b6b9505a2c84ba9bfb91dd3be76e5 (diff)
downloadsamba-5bf17840ac7d65d08dd3fdfe8b789010488f6808.tar.gz
samba-5bf17840ac7d65d08dd3fdfe8b789010488f6808.tar.xz
samba-5bf17840ac7d65d08dd3fdfe8b789010488f6808.zip
namequery.c: Fixed SGI IRIX 5.x compiler problem.
server.c: Added MACHINE.SID file generation - use lp_domain_sid() be default. smbpass.c: Exposed do_file_lock() as I now use it in server.c Jeremy.
Diffstat (limited to 'source/passdb/smbpass.c')
-rw-r--r--source/passdb/smbpass.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/passdb/smbpass.c b/source/passdb/smbpass.c
index a8179331884..3b93b28a1e9 100644
--- a/source/passdb/smbpass.c
+++ b/source/passdb/smbpass.c
@@ -40,7 +40,7 @@ static void gotalarm_sig(void)
seconds.
****************************************************************/
-static BOOL do_pw_lock(int fd, int waitsecs, int type)
+BOOL do_file_lock(int fd, int waitsecs, int type)
{
struct flock lock;
int ret;
@@ -60,7 +60,7 @@ static BOOL do_pw_lock(int fd, int waitsecs, int type)
signal(SIGALRM, SIGNAL_CAST SIG_DFL);
if (gotalarm) {
- DEBUG(0, ("do_pw_lock: failed to %s SMB passwd file.\n",
+ DEBUG(0, ("do_file_lock: failed to %s file.\n",
type == F_UNLCK ? "unlock" : "lock"));
return False;
}
@@ -82,7 +82,7 @@ static BOOL pw_file_lock(int fd, int type, int secs, int *plock_depth)
(*plock_depth)++;
if(pw_file_lock_depth == 0) {
- if (!do_pw_lock(fd, secs, type)) {
+ if (!do_file_lock(fd, secs, type)) {
DEBUG(10,("pw_file_lock: locking file failed, error = %s.\n",
strerror(errno)));
return False;
@@ -101,7 +101,7 @@ static BOOL pw_file_unlock(int fd, int *plock_depth)
BOOL ret=True;
if(*plock_depth == 1)
- ret = do_pw_lock(fd, 5, F_UNLCK);
+ ret = do_file_lock(fd, 5, F_UNLCK);
(*plock_depth)--;