diff options
author | Jeremy Allison <jra@samba.org> | 1998-05-14 03:20:42 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-05-14 03:20:42 +0000 |
commit | bce6d410130982af6ca58dc9a0d297b5f80e6c6c (patch) | |
tree | 404cb8ff43382551d9aa0f293882c089935d126f /source3/passdb | |
parent | a4276507e43487f47445eab11d4ac1b080b3270e (diff) | |
download | samba-bce6d410130982af6ca58dc9a0d297b5f80e6c6c.tar.gz samba-bce6d410130982af6ca58dc9a0d297b5f80e6c6c.tar.bz2 samba-bce6d410130982af6ca58dc9a0d297b5f80e6c6c.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.
(This used to be commit 5bf17840ac7d65d08dd3fdfe8b789010488f6808)
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/smbpass.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/passdb/smbpass.c b/source3/passdb/smbpass.c index a817933188..3b93b28a1e 100644 --- a/source3/passdb/smbpass.c +++ b/source3/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)--; |