summaryrefslogtreecommitdiffstats
path: root/source3/smbd/utmp.c
Commit message (Collapse)AuthorAgeFilesLines
* param: rename lp function and variable from 'wtmpdir' to 'wtmp_directory'Garming Sam2014-02-071-1/+1
| | | | | | Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* param: rename lp function and variable from 'umtpdir' to 'utmp_directory'Garming Sam2014-02-071-1/+1
| | | | | | Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:smbd: use session_global_id as session number for pam and utmpGregor Beck2012-10-191-10/+6
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smbd/utmp: remove ip address from utmp recordStefan Metzmacher2012-10-191-32/+6
| | | | | | | | | | | 1. This was broken since Samba 3.2. when ipv6 support was added, it only worked for ipv6 addresses. 2. userspace tools only display the hostname field. 3. This is not really portable metze Signed-off-by: Michael Adam <obnox@samba.org>
* lib/util: Remove obsolete sys_getpid() and sys_fork().Jelmer Vernooij2012-03-241-1/+1
| | | | | | | | | The performance of these is minimal (these days) and they can return invalid results when used as part of applications that do not use sys_fork(). Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Mar 24 21:55:41 CET 2012 on sn-devel-104
* s3:smbd/utmp.c - fix the build on FreeBSD 9 without utmp.hMatthias Dieter Wallnöfer2012-02-231-0/+2
| | | | | | | | | https://bugzilla.samba.org/show_bug.cgi?id=8709 Reviewed-by: Jelmer Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Thu Feb 23 19:17:25 CET 2012 on sn-devel-104
* s3: try to fix the build on some non-linux buildfarm machines.Günther Deschner2011-03-301-0/+1
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Mar 30 11:39:31 CEST 2011 on sn-devel-104
* s3: include smbd/smbd.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3:smbd: make globals in utmp.c static constStefan Metzmacher2009-01-081-4/+4
| | | | | | | | | | | | | const char *foo, means a non-const pointer to a const char. const char * const foo, means a const pointer to a const char. char * const foo, would mean a const pointer to a non-const char. metze
* Fix various build warningsZach Loafman2008-07-221-1/+2
| | | | | | This fixes various build warnings on our platform. I'm sure I haven't caught them all, but it's a start. (This used to be commit 6b73f259cb67d9dda9127907d706f9244a871fa3)
* Missing HAVE_UPDWTMPX check before using updwtmpx().Eric Cronin2008-03-241-0/+4
| | | | | | | | | | 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)
* Fix a segfaultVolker Lendecke2008-01-221-1/+1
| | | | | | | | | | | | | Found by the IBM checker. Jeremy, you changed this from 'dirname == 0' which does not make sense at all in the old code to '!dirname == 0' which from my point of view makes even less sense, because the precedence of ! is according to Harbison/Steele higher than the precedence of ==. Please check that the code now actually does what it's supposed to do. Thanks! (This used to be commit c8def5564739c4c754001f84fcfb77f1093b96c3)
* Remove last pstring from smbd/*.cJeremy Allison2007-11-131-24/+40
| | | | | Jeremy. (This used to be commit f1680bada913af4eaf5c0d686983018d6c8b3e5f)
* Add test for "struct in6_addr" to the HAVE_IPV6 configure test.Gerald (Jerry) Carter2007-10-191-1/+1
| | | | | | | Also make use of "if defined(HAVE_IPV6)" rather than testing for AF_INET6 since this is not sufficient on HP-UX 11.11 to ensure a working IPv6 implementation. (This used to be commit 620785df4e57b72471ff0315e22e0d2f28a2b1a5)
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-5/+5
| | | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
* [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.Gerald (Jerry) Carter2007-10-101-2/+2
| | | | (This used to be commit 5c6c8e1fe93f340005110a7833946191659d88ab)
* r25498: Remove checks that are always true.Jelmer Vernooij2007-10-101-2/+2
| | | | (This used to be commit 2f2bdfa0df758104a9a2fcafe49d6215d8753536)
* r25492: Start adding IPv6 compatible code to lib/util_sock.c and deal withJeremy Allison2007-10-101-24/+39
| | | | | | | the ripple effects this causes. utmp has to change etc. Remove some global varables and store address/port in the unexpected db. Jeremy. (This used to be commit 18c6a2211d9e25233d01715b3f78977edcd6d869)
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
| | | | (This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | | Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
* r1325: Always use GetTimeOfDay() (wrapper). Ensure ldap replicationJeremy Allison2007-10-101-2/+2
| | | | | | | sleep time is not more than 5 seconds. Should fix issue reported by Chris Garrigues <cwg@deepeddy.com>. Jeremy. (This used to be commit fbc06831d3a7e8645409158ee1ae1f9f192913a7)
* More tuning from cachegrind. Change most trim_string() calls to trim_char(0,Jeremy Allison2003-09-051-2/+2
| | | | | | as that's what they do. Fix string_replace() to fast-path ascii. Jeremy. (This used to be commit f35e9a8b909d3c74be47083ccc4a4e91a14938db)
* Fix up #defines around utmp_host and utmp_name. Noticed by ↵Jeremy Allison2003-08-031-0/+6
| | | | | | | Cord.Hockemeyer@uni-graz.at Jeremy. (This used to be commit 07c5ecb945c1189fd6e8628f5e989b90dd15163b)
* More printf portability fixes. Got caught out by some gcc'isms lastTim Potter2003-07-251-2/+2
| | | | | time. )-: (This used to be commit 59dae1da66a5eb7e128263bd578f167d8746e9f0)
* More printf fixes - size_t is long on some architectures.Tim Potter2003-07-241-1/+1
| | | | (This used to be commit ba4d334b822248d8ab929c9568533431603d967e)
* * add in David Lee's utmp patch (defaults to on if available)Gerald Carter2003-06-061-5/+18
| | | | | * one more try at fixing builds when --with-ldap=no (This used to be commit b516ab7bdef6b6b2b7f0df8966dbd4c329f46a92)
* David Lee <t.d.lee@durham.ac.uk> provides some corrections to the commentsAndrew Bartlett2003-05-161-39/+5
| | | | | | | in the UTMP code. Andrew Bartlett (This used to be commit f0cff106cb6c8993eb31f589106d845261c1f8e9)
* When possible, store the IP address of the connecting client, not just theAndrew Bartlett2003-04-241-3/+7
| | | | | | | | | | | hostname. This makes 'last -i' show the IP. Thanks to Philip Anderson <pza@australia.op.org> for the idea. Andrew Bartlett (This used to be commit 107731c080da1e3e4e13e966f8b79bfd2692a952)
* Merge from HEAD - make Samba compile with -Wwrite-strings without additionalAndrew Bartlett2003-01-031-1/+1
| | | | | | | warnings. (Adds a lot of const). Andrew Bartlett (This used to be commit 3a7458f9472432ef12c43008414925fd1ce8ea0c)
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
* Tidyup utmp code to cope with hostname = NULL.Jeremy Allison2001-12-181-11/+13
| | | | | Jeremy (This used to be commit 2a1b531a1c4f1a4772c95c867f35eac50ed1c7fa)
* Patch for string legths from TAKAHASHI, Motonobu(monyo).Jeremy Allison2001-12-131-17/+46
| | | | | Jeremy. (This used to be commit f0d8b7573fc74004131ba0a82dbd5e0007a524bf)
* Be sure to not use strlen with NULL pointer.Simo Sorce2001-06-151-1/+2
| | | | (This used to be commit 53803b008717e8606b347ed8baab78121c6e9657)
* new files for headAndrew Tridgell2001-04-181-0/+575
(This used to be commit c0d4a1f5dd34e49843c879dd88fc78c7dffd9269)