userinfo.git
3 years agoFix potential buffer overflow.master
Ben Kibbey [Fri, 9 Oct 2020 03:54:18 +0000 (8 20:54 -0700)]
Fix potential buffer overflow.

5 years agoFix another compile time warning.
Ben Kibbey [Sat, 22 Dec 2018 23:02:10 +0000 (22 15:02 -0800)]
Fix another compile time warning.

7 years agoFix compiler warnings.
Ben Kibbey [Wed, 21 Sep 2016 00:20:57 +0000 (20 20:20 -0400)]
Fix compiler warnings.

9 years agoBump version for development.
Ben Kibbey [Sun, 18 Jan 2015 17:36:51 +0000 (18 12:36 -0500)]
Bump version for development.

9 years agoVersion 2.5.v2.5
Ben Kibbey [Sun, 18 Jan 2015 17:25:33 +0000 (18 12:25 -0500)]
Version 2.5.

9 years agoUpdate copyright year to 2015.
Ben Kibbey [Thu, 15 Jan 2015 00:17:05 +0000 (14 19:17 -0500)]
Update copyright year to 2015.

9 years agoFix Coverity issue #102015.
Ben Kibbey [Thu, 15 Jan 2015 00:13:19 +0000 (14 19:13 -0500)]
Fix Coverity issue #102015.

9 years agoFix Coverity issue #102014.
Ben Kibbey [Thu, 15 Jan 2015 00:05:03 +0000 (14 19:05 -0500)]
Fix Coverity issue #102014.

9 years agoFix Coverity issue #102016.
Ben Kibbey [Thu, 15 Jan 2015 00:04:07 +0000 (14 19:04 -0500)]
Fix Coverity issue #102016.

9 years agoFix Coverity issue #102017.
Ben Kibbey [Thu, 15 Jan 2015 00:01:43 +0000 (14 19:01 -0500)]
Fix Coverity issue #102017.

9 years agoFix Coverity issues #102018 and #102015.
Ben Kibbey [Thu, 15 Jan 2015 00:00:43 +0000 (14 19:00 -0500)]
Fix Coverity issues #102018 and #102015.

9 years agoFix Coverity issue #102019.
Ben Kibbey [Wed, 14 Jan 2015 23:59:21 +0000 (14 18:59 -0500)]
Fix Coverity issue #102019.

9 years agoFix Coverity issue #102020.
Ben Kibbey [Wed, 14 Jan 2015 23:56:19 +0000 (14 18:56 -0500)]
Fix Coverity issue #102020.

9 years agoFix Coverity issue #102021.
Ben Kibbey [Wed, 14 Jan 2015 23:54:47 +0000 (14 18:54 -0500)]
Fix Coverity issue #102021.

9 years agoFix Coverity issue #102023.
Ben Kibbey [Wed, 14 Jan 2015 23:53:44 +0000 (14 18:53 -0500)]
Fix Coverity issue #102023.

9 years agoBump version for development.
Ben Kibbey [Wed, 14 Jan 2015 22:54:01 +0000 (14 17:54 -0500)]
Bump version for development.

10 years agoFix potential crash found by smatch.
Ben Kibbey [Thu, 17 Apr 2014 01:14:47 +0000 (16 21:14 -0400)]
Fix potential crash found by smatch.

11 years agoVersion 2.4.v2.4
Ben Kibbey [Sat, 6 Apr 2013 18:44:20 +0000 (6 14:44 -0400)]
Version 2.4.

11 years agoFix 'smatch' warnings.
Ben Kibbey [Sat, 6 Apr 2013 18:37:08 +0000 (6 14:37 -0400)]
Fix 'smatch' warnings.

11 years agoRevert "Cleaner safe_strncat()."
Ben Kibbey [Sat, 6 Apr 2013 18:12:23 +0000 (6 14:12 -0400)]
Revert "Cleaner safe_strncat()."

This reverts commit 3f0914da760e154861e42178c776f975920fb40b.

Brain fart.

11 years agoCheck for getlastlogx().
Ben Kibbey [Sat, 6 Apr 2013 17:38:59 +0000 (6 13:38 -0400)]
Check for getlastlogx().

Recent NetBSD releases have this.

11 years agologin.so: OpenBSD fixes.
Ben Kibbey [Sat, 6 Apr 2013 17:02:32 +0000 (6 13:02 -0400)]
login.so: OpenBSD fixes.

11 years agoCheck for setutxent().
Ben Kibbey [Sat, 6 Apr 2013 15:24:24 +0000 (6 11:24 -0400)]
Check for setutxent().

Fixes crash on OpenWRT (ar71xx).

11 years agoUpdate copyright year.
Ben Kibbey [Sat, 6 Apr 2013 13:18:17 +0000 (6 09:18 -0400)]
Update copyright year.

11 years agoCleaner safe_strncat().
Ben Kibbey [Sat, 6 Apr 2013 13:16:35 +0000 (6 09:16 -0400)]
Cleaner safe_strncat().

11 years agoCheck for getgrent() and other struct passwd members.
Ben Kibbey [Sat, 6 Apr 2013 12:54:52 +0000 (6 08:54 -0400)]
Check for getgrent() and other struct passwd members.

11 years agoMore checks for limits.h and LINE_MAX.
Ben Kibbey [Sat, 6 Apr 2013 12:27:14 +0000 (6 08:27 -0400)]
More checks for limits.h and LINE_MAX.

11 years agoCreate the m4/ directory.
Ben Kibbey [Sun, 1 Jul 2012 11:53:45 +0000 (1 07:53 -0400)]
Create the m4/ directory.

11 years agoFix compile time warning.
Ben Kibbey [Sat, 30 Jun 2012 23:56:55 +0000 (30 19:56 -0400)]
Fix compile time warning.

13 years agoCompilation fix for Solaris > 4 (untested).
Ben Kibbey [Sun, 20 Feb 2011 22:18:01 +0000 (20 17:18 -0500)]
Compilation fix for Solaris > 4 (untested).

13 years agoVersion 2.3.v2.3
Ben Kibbey [Sun, 16 Jan 2011 00:06:06 +0000 (15 19:06 -0500)]
Version 2.3.

13 years agoMake safe_strncat() conform to strlcpy() usage by returning the length of
Ben Kibbey [Sun, 16 Jan 2011 00:03:03 +0000 (15 19:03 -0500)]
Make safe_strncat() conform to strlcpy() usage by returning the length of
the destination and source strings.

13 years agoMake a note about multiple loading of the same module.
Ben Kibbey [Sat, 15 Jan 2011 20:24:10 +0000 (15 15:24 -0500)]
Make a note about multiple loading of the same module.

13 years agoIncrease the argument length for a line in an rc file.
Ben Kibbey [Sat, 15 Jan 2011 20:07:45 +0000 (15 15:07 -0500)]
Increase the argument length for a line in an rc file.

Plugged a memory leak.

13 years agoFixed Valgrind warnings: make the modules array an array of pointers.
Ben Kibbey [Sat, 15 Jan 2011 19:34:53 +0000 (15 14:34 -0500)]
Fixed Valgrind warnings: make the modules array an array of pointers.

13 years agoFixed configure warning on FreeBSD (6.3). Don't test for sys/syslimits.h.
Ben Kibbey [Sat, 15 Jan 2011 18:01:05 +0000 (15 13:01 -0500)]
Fixed configure warning on FreeBSD (6.3). Don't test for sys/syslimits.h.

13 years agoMinor cleanup of lastlogfd.
Ben Kibbey [Sat, 15 Jan 2011 17:40:41 +0000 (15 12:40 -0500)]
Minor cleanup of lastlogfd.

13 years ago'make distcheck' fix.
Ben Kibbey [Sat, 15 Jan 2011 02:35:37 +0000 (14 21:35 -0500)]
'make distcheck' fix.

13 years agoUpdated NEWS.
Ben Kibbey [Sat, 15 Jan 2011 02:27:54 +0000 (14 21:27 -0500)]
Updated NEWS.

13 years agoRevert "Added module function ui_module_exec2(). This differs from"
Ben Kibbey [Sat, 15 Jan 2011 21:23:40 +0000 (15 16:23 -0500)]
Revert "Added module function ui_module_exec2(). This differs from"

This reverts commit 78d0939e686ba4a088768e20fd2ba509ef5dc483.

Whoops. The delimitor is output by "joining" the strings in the array.

13 years agoAdded module function ui_module_exec2(). This differs from
Ben Kibbey [Sat, 15 Jan 2011 01:16:31 +0000 (14 20:16 -0500)]
Added module function ui_module_exec2(). This differs from
ui_module_exec() in that it also passes the field delimitor in addition
to the multi-value separator.

13 years agoMake safe_strncat() available to modules.
Ben Kibbey [Sat, 15 Jan 2011 01:06:30 +0000 (14 20:06 -0500)]
Make safe_strncat() available to modules.

13 years agoFancy-pants safe_strncat().
Ben Kibbey [Sat, 15 Jan 2011 00:57:01 +0000 (14 19:57 -0500)]
Fancy-pants safe_strncat().

13 years agoUse PATH_MAX rather than FILENAME_MAX where appropriate.
Ben Kibbey [Sat, 15 Jan 2011 00:15:54 +0000 (14 19:15 -0500)]
Use PATH_MAX rather than FILENAME_MAX where appropriate.

13 years agoFreeBSD 9.0 compile time fix. Found a tester. :)
Ben Kibbey [Thu, 13 Jan 2011 02:43:52 +0000 (12 21:43 -0500)]
FreeBSD 9.0 compile time fix. Found a tester. :)

13 years agologin.so: cannot be an error if there is no hostname (-h and -lh); only
Ben Kibbey [Thu, 13 Jan 2011 02:34:05 +0000 (12 21:34 -0500)]
login.so: cannot be an error if there is no hostname (-h and -lh); only
unknown.

13 years agofexists.so: more than one file can be specified. Specify the mode before
Ben Kibbey [Thu, 13 Jan 2011 02:11:34 +0000 (12 21:11 -0500)]
fexists.so: more than one file can be specified. Specify the mode before
the filename. Also fixed corruption.

13 years agocppcheck fixes.
Ben Kibbey [Thu, 13 Jan 2011 00:52:26 +0000 (12 19:52 -0500)]
cppcheck fixes.

13 years agokill.so: use a safer strncat().
Ben Kibbey [Wed, 12 Jan 2011 01:57:25 +0000 (11 20:57 -0500)]
kill.so: use a safer strncat().

13 years agoUpdated the copyright year.
Ben Kibbey [Wed, 12 Jan 2011 01:52:36 +0000 (11 20:52 -0500)]
Updated the copyright year.

13 years agoDon't add DEAD_PROCESS's to the utmpx entry list.
Ben Kibbey [Wed, 12 Jan 2011 00:51:28 +0000 (11 19:51 -0500)]
Don't add DEAD_PROCESS's to the utmpx entry list.

13 years agoRemove DEBUG lines.
Ben Kibbey [Tue, 11 Jan 2011 03:12:45 +0000 (10 22:12 -0500)]
Remove DEBUG lines.

13 years agoUse safe_strncat() to prevent overrunning the destination buffer.
Ben Kibbey [Tue, 11 Jan 2011 01:03:43 +0000 (10 20:03 -0500)]
Use safe_strncat() to prevent overrunning the destination buffer.

13 years agoutmp[x] fixes and cleanups. This was prompted by a build failure on
Ben Kibbey [Sun, 9 Jan 2011 23:40:05 +0000 (9 18:40 -0500)]
utmp[x] fixes and cleanups. This was prompted by a build failure on
FreeBSD 9.0 since this release now uses utmpx exclusively.

13 years agoNew homepage at http://userinfo.sourceforge.net/.
Ben Kibbey [Sun, 9 Jan 2011 14:58:35 +0000 (9 09:58 -0500)]
New homepage at http://userinfo.sourceforge.net/.

13 years agoCreate a bzip2 archive. Portability fix for autogen.sh. Fixed the
Ben Kibbey [Sun, 9 Jan 2011 14:52:11 +0000 (9 09:52 -0500)]
Create a bzip2 archive. Portability fix for autogen.sh. Fixed the
'changelog' Makefile target.

17 years agoAdded homepage to README.v2.2
Ben Kibbey [Sat, 17 Mar 2007 17:26:30 +0000 (17 13:26 -0400)]
Added homepage to README.

17 years agoRemoved ChangeLog.old as it's redundant. Oops.
Ben Kibbey [Sat, 17 Mar 2007 17:21:51 +0000 (17 13:21 -0400)]
Removed ChangeLog.old as it's redundant. Oops.

17 years agoRenamed LICENSE to COPYING.
Ben Kibbey [Sat, 17 Mar 2007 17:12:26 +0000 (17 13:12 -0400)]
Renamed LICENSE to COPYING.

17 years agoLoad module symbols immediately (RTLD_NOW).
Ben Kibbey [Sat, 17 Mar 2007 13:06:32 +0000 (17 09:06 -0400)]
Load module symbols immediately (RTLD_NOW).

17 years agoUpdate ui.1 and the -L switch.
Ben Kibbey [Thu, 15 Mar 2007 23:37:04 +0000 (15 19:37 -0400)]
Update ui.1 and the -L switch.

17 years agoAdded 'version' Makefile target.
Ben Kibbey [Thu, 15 Mar 2007 22:23:20 +0000 (15 18:23 -0400)]
Added 'version' Makefile target.

Added ChangeLog.old to the archive.

Version updates.

17 years agoFix command line help usage text.
Ben Kibbey [Sat, 14 Oct 2006 15:55:06 +0000 (14 11:55 -0400)]
Fix command line help usage text.

17 years agoUpdated email address and copyright.
Ben Kibbey [Sat, 14 Oct 2006 15:14:52 +0000 (14 11:14 -0400)]
Updated email address and copyright.

Fixed compiler warnings.

18 years agochmod 0700 autogen.sh.
Ben Kibbey [Fri, 10 Mar 2006 20:05:23 +0000 (10 15:05 -0500)]
chmod 0700 autogen.sh.

18 years agoChanged follow-symlink option -l to -L.
Ben Kibbey [Fri, 10 Mar 2006 20:03:45 +0000 (10 15:03 -0500)]
Changed follow-symlink option -l to -L.

Users idle time is now in seconds rather than minutes.

Fixed compiler warnings about shadowed declarations.

Some small code cleanups.

18 years agoAdded example module contrib/fexists.c. This tests for file existance
Ben Kibbey [Fri, 10 Mar 2006 20:00:59 +0000 (10 15:00 -0500)]
Added example module contrib/fexists.c. This tests for file existance
in a users home directory.

18 years agoSwitch from CVS to GIT.
Ben Kibbey [Fri, 10 Mar 2006 19:57:41 +0000 (10 14:57 -0500)]
Switch from CVS to GIT.

ChangeLog removed from the archive.

Added LICENSE and autogen.sh to the archive.

18 years agoRelease version 2.1.v2.1
bjk [Sat, 30 Jul 2005 17:35:21 +0000 (30 17:35 +0000)]
Release version 2.1.

18 years agoFix for utmp hostname corruption on NetBSD.
bjk [Sat, 30 Jul 2005 17:28:40 +0000 (30 17:28 +0000)]
Fix for utmp hostname corruption on NetBSD.

18 years agoSolaris doesn't have strsep() or warn[x]() or err[x](). Include "../<file>.c".
bjk [Sat, 30 Jul 2005 17:14:46 +0000 (30 17:14 +0000)]
Solaris doesn't have strsep() or warn[x]() or err[x](). Include "../<file>.c".

18 years agoUpdate usage for verbosity.
bjk [Sat, 30 Jul 2005 16:34:34 +0000 (30 16:34 +0000)]
Update usage for verbosity.

18 years agoMore updates.
bjk [Sat, 30 Jul 2005 16:05:17 +0000 (30 16:05 +0000)]
More updates.

18 years agoprintf()'s not fprintf(stderr, ...)'s.
bjk [Sat, 30 Jul 2005 15:57:04 +0000 (30 15:57 +0000)]
printf()'s not fprintf(stderr, ...)'s.

18 years agoShow which option the module requires from login.so in the module help.
bjk [Sat, 30 Jul 2005 15:56:21 +0000 (30 15:56 +0000)]
Show which option the module requires from login.so in the module help.

18 years agoFix for '-d'.
bjk [Sat, 30 Jul 2005 15:53:27 +0000 (30 15:53 +0000)]
Fix for '-d'.

18 years agoUpdate verbosity.
bjk [Sat, 30 Jul 2005 15:49:09 +0000 (30 15:49 +0000)]
Update verbosity.

18 years agoFix for modules which take no options at all. Getopt() was terminating the
bjk [Sat, 30 Jul 2005 15:46:52 +0000 (30 15:46 +0000)]
Fix for modules which take no options at all. Getopt() was terminating the
options list and treating other options as arguments.

Verbosity (-v) is done per-module unless specified twice (-vv).

18 years agoFix for a segfault when munmap()'ing the alias file.
bjk [Sat, 30 Jul 2005 15:22:20 +0000 (30 15:22 +0000)]
Fix for a segfault when munmap()'ing the alias file.

18 years agoReally fix the dup warning.
bjk [Sat, 30 Jul 2005 15:21:21 +0000 (30 15:21 +0000)]
Really fix the dup warning.

18 years agoDon't ouput the module duplicate warning more than once for each dup.
bjk [Sat, 30 Jul 2005 14:14:40 +0000 (30 14:14 +0000)]
Don't ouput the module duplicate warning more than once for each dup.

18 years ago*** empty log message ***
bjk [Sat, 30 Jul 2005 13:01:47 +0000 (30 13:01 +0000)]
*** empty log message ***

18 years agoUpdates for 2.1.
bjk [Sat, 30 Jul 2005 13:00:15 +0000 (30 13:00 +0000)]
Updates for 2.1.

Fixed memory leak in login.c.

18 years agoFixed module chaining of more than two modules.
bjk [Sat, 30 Jul 2005 12:59:45 +0000 (30 12:59 +0000)]
Fixed module chaining of more than two modules.

Miscellaneous cleanups.

Output the module name when showing help.

Skip duplicate modules help.

18 years agoUpdate for 2.1.
bjk [Sat, 30 Jul 2005 12:58:05 +0000 (30 12:58 +0000)]
Update for 2.1.

18 years agoRefer to INSTALL for details on configure.
bjk [Sat, 30 Jul 2005 12:57:45 +0000 (30 12:57 +0000)]
Refer to INSTALL for details on configure.

18 years agoUpdate for version 2.1.
bjk [Sat, 30 Jul 2005 12:57:18 +0000 (30 12:57 +0000)]
Update for version 2.1.

18 years agoModules are located in src/modules.
bjk [Sat, 30 Jul 2005 12:57:04 +0000 (30 12:57 +0000)]
Modules are located in src/modules.

18 years agoInitial commit.
bjk [Sun, 24 Jul 2005 14:54:38 +0000 (24 14:54 +0000)]
Initial commit.

18 years agoRemoved configurable strings UNKNOWN, NONE, YES and NO. These are more
bjk [Sun, 24 Jul 2005 13:50:57 +0000 (24 13:50 +0000)]
Removed configurable strings UNKNOWN, NONE, YES and NO. These are more
hardcoded now. Module writers should look at the 'Output Key' when running
'ui -h'.

The -x and -X switches now require a module name like -O so there is no need
to specify both -O with -x or -X.

18 years agoRemoved configurable strings UNKNOWN, NONE, YES and NO. These are more
bjk [Sun, 24 Jul 2005 13:49:26 +0000 (24 13:49 +0000)]
Removed configurable strings UNKNOWN, NONE, YES and NO. These are more
hardcoded now. Module writers should look at the 'Output Key' when running
'ui -h'.

Update manual page to reflect changes in the -X and -x switches.

18 years agoRemoved configurable strings UNKNOWN, NONE, YES and NO. These are more
bjk [Sun, 24 Jul 2005 13:48:34 +0000 (24 13:48 +0000)]
Removed configurable strings UNKNOWN, NONE, YES and NO. These are more
hardcoded now. Module writers should look at the 'Output Key' when running
'ui -h'.

19 years agoInitial revision
bjk [Sun, 5 Dec 2004 19:44:23 +0000 (5 19:44 +0000)]
Initial revision