diff options
author | Eric Cronin <ecronin@gizmolabs.org> | 2008-03-24 12:33:04 -0700 |
---|---|---|
committer | James Peach <jpeach@apple.com> | 2008-03-24 12:33:04 -0700 |
commit | 2c5c3a0ba980ab97450cb97e1e575b23898ccc1f (patch) | |
tree | 830e4bc63c337225465ab75737e1e121820918a3 /source3/smbd | |
parent | e9ba13bc67576aa70694ce54ca70aef4375ebe13 (diff) | |
download | samba-2c5c3a0ba980ab97450cb97e1e575b23898ccc1f.tar.gz samba-2c5c3a0ba980ab97450cb97e1e575b23898ccc1f.tar.bz2 samba-2c5c3a0ba980ab97450cb97e1e575b23898ccc1f.zip |
Missing HAVE_UPDWTMPX check before using updwtmpx().
In 10.5 Mac OS X added enough utmpx support to make it past the
first two preprocessor checks around line 390 of src/smbd/utmp.c
and on to the utmpx block which uses updwtmpx(). Unfortunately,
as ./configure correctly surmised, 10.5 doesn't have that.
https://bugzilla.samba.org/show_bug.cgi?id=5184
(This used to be commit f19d1e3d93d0d9dfe80372c6c5635f1047f9aa88)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/utmp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/utmp.c b/source3/smbd/utmp.c index 5931b2b1d0..de6d707eaf 100644 --- a/source3/smbd/utmp.c +++ b/source3/smbd/utmp.c @@ -409,6 +409,10 @@ static void sys_utmp_update(struct utmp *u, const char *hostname, bool claim) /* Odd. Have utmpx.h but no "getutmpx()". Drop to non-x stuff */ DEBUG(1,("utmp_update: have utmpx.h but no getutmpx() function\n")); utmp_nox_update(u, claim); +#elif !defined(HAVE_UPDWTMPX) + /* Have utmpx.h but no "updwtmpx()". Drop to non-x stuff */ + DEBUG(1,("utmp_update: have utmpx.h but no updwtmpx() function\n")); + utmp_nox_update(u, claim); #else char *uname = NULL; char *wname = NULL; |