-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add utmp/wtmp support #2745
Add utmp/wtmp support #2745
Commits on Feb 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 895fe28 - Browse repository at this point
Copy the full SHA 895fe28View commit details -
Configuration menu - View commit details
-
Copy full SHA for 42388ca - Browse repository at this point
Copy the full SHA 42388caView commit details -
Configuration menu - View commit details
-
Copy full SHA for c103d23 - Browse repository at this point
Copy the full SHA c103d23View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ea3062 - Browse repository at this point
Copy the full SHA 3ea3062View commit details -
Configuration menu - View commit details
-
Copy full SHA for 56eec32 - Browse repository at this point
Copy the full SHA 56eec32View commit details -
- renamed the two files, including the header was conflicting with official headers - configure look for utmp/utmpx headers, wo we know which struct to use - reworked the usage for linux, works mostly (last still showing 'gone' for loggued users)
Configuration menu - View commit details
-
Copy full SHA for bacda80 - Browse repository at this point
Copy the full SHA bacda80View commit details -
Configuration menu - View commit details
-
Copy full SHA for d3a751c - Browse repository at this point
Copy the full SHA d3a751cView commit details -
Configuration menu - View commit details
-
Copy full SHA for e32671c - Browse repository at this point
Copy the full SHA e32671cView commit details -
Configuration menu - View commit details
-
Copy full SHA for eaffeaf - Browse repository at this point
Copy the full SHA eaffeafView commit details -
Add the loginuid pam module, as we are starting a session.
So /proc/<uid>/loginuid will be filled by the uid of the user. This will fix entries in 'last' with "gone - no logout" instead of 'still logged in'
Configuration menu - View commit details
-
Copy full SHA for 2af2e03 - Browse repository at this point
Copy the full SHA 2af2e03View commit details -
Configuration menu - View commit details
-
Copy full SHA for 547388d - Browse repository at this point
Copy the full SHA 547388dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 58b3989 - Browse repository at this point
Copy the full SHA 58b3989View commit details -
Follow coding standard
Configuration menu - View commit details
-
Copy full SHA for 22f17ad - Browse repository at this point
Copy the full SHA 22f17adView commit details -
Configuration menu - View commit details
-
Copy full SHA for da0f3ce - Browse repository at this point
Copy the full SHA da0f3ceView commit details -
AC_GNU_SOURCE is replaced with AC_USE_SYSTEM_EXTENSIONS (available from autoconf 2.6.0)
Configuration menu - View commit details
-
Copy full SHA for 49f60fc - Browse repository at this point
Copy the full SHA 49f60fcView commit details
Commits on Feb 21, 2024
-
Rename struct exit_status in os_calls
This conflicts with struct exit_status in <utmp.h>
Configuration menu - View commit details
-
Copy full SHA for bc9b35c - Browse repository at this point
Copy the full SHA bc9b35cView commit details -
Configuration menu - View commit details
-
Copy full SHA for bf53a76 - Browse repository at this point
Copy the full SHA bf53a76View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b6c9bc - Browse repository at this point
Copy the full SHA 3b6c9bcView commit details -
Don't use DEAD_PROCESS/USER_PROCESS for add_xtmp_entry
If we're not compiling with USE_UTMP, these defines will not be available
Configuration menu - View commit details
-
Copy full SHA for 98d6545 - Browse repository at this point
Copy the full SHA 98d6545View commit details -
The utmp record is generally looked up by the ut_id field. Setting this field means we can use a blank username and host when the session exits
Configuration menu - View commit details
-
Copy full SHA for 04c67a5 - Browse repository at this point
Copy the full SHA 04c67a5View commit details -
Allow some utmpx fields to be optional
POSIX.1 doesn't define ut_host in struct utmpx. Also, Linux has support for an exit status value in ut_exit. This commit adds conditional code for both ut_host and ut_exit to maximise portability.
Configuration menu - View commit details
-
Copy full SHA for b53c683 - Browse repository at this point
Copy the full SHA b53c683View commit details -
Replace g_strncpy() with str2memcpy()
g_strncpy() is the wrong function for copying strings in struct utmp[x] as it always terminates strings. strncpy() itself would be a good choice, but is marked by many compilers as being unsafe to use. str2memcpy() is taken from util-linux, and is exactly right for this application.
Configuration menu - View commit details
-
Copy full SHA for 8cea9b0 - Browse repository at this point
Copy the full SHA 8cea9b0View commit details