]> granicus.if.org Git - sudo/log
sudo
14 years agoUpdate for sudo 1.8.1 beta
Todd C. Miller [Fri, 18 Mar 2011 14:25:33 +0000 (10:25 -0400)]
Update for sudo 1.8.1 beta

--HG--
branch : 1.8

14 years agouser_shell -> run_shell to avoid confusion with the user's SHELL variable.
Todd C. Miller [Fri, 18 Mar 2011 14:25:18 +0000 (10:25 -0400)]
user_shell -> run_shell to avoid confusion with the user's SHELL variable.

--HG--
branch : 1.8

14 years agoUpdate for sudo 1.8.1 beta
Todd C. Miller [Fri, 18 Mar 2011 14:24:40 +0000 (10:24 -0400)]
Update for sudo 1.8.1 beta

14 years agouser_shell -> run_shell to avoid confusion with the user's SHELL variable.
Todd C. Miller [Fri, 18 Mar 2011 14:23:35 +0000 (10:23 -0400)]
user_shell -> run_shell to avoid confusion with the user's SHELL variable.

14 years agoSave the controlling tty process group before suspending in pty
Todd C. Miller [Fri, 18 Mar 2011 14:05:25 +0000 (10:05 -0400)]
Save the controlling tty process group before suspending in pty
mode.  Previously, we assumed that the child pgrp == child pid
(which is usually, but not always, the case).

--HG--
branch : 1.8

14 years agoSave the controlling tty process group before suspending in pty
Todd C. Miller [Fri, 18 Mar 2011 14:04:50 +0000 (10:04 -0400)]
Save the controlling tty process group before suspending in pty
mode.  Previously, we assumed that the child pgrp == child pid
(which is usually, but not always, the case).

14 years agoAdd support for sudoers_search_filter setting in ldap.conf. This
Todd C. Miller [Fri, 18 Mar 2011 13:39:28 +0000 (09:39 -0400)]
Add support for sudoers_search_filter setting in ldap.conf.  This
can be used to restrict the set of records returned by the LDAP
query.

--HG--
branch : 1.8

14 years agoAdd support for sudoers_search_filter setting in ldap.conf. This
Todd C. Miller [Fri, 18 Mar 2011 13:38:42 +0000 (09:38 -0400)]
Add support for sudoers_search_filter setting in ldap.conf.  This
can be used to restrict the set of records returned by the LDAP
query.

14 years agoRemove the hack to disable -g in CFLAGS unless --with-devel
Todd C. Miller [Thu, 17 Mar 2011 22:45:14 +0000 (18:45 -0400)]
Remove the hack to disable -g in CFLAGS unless --with-devel

--HG--
branch : 1.8

14 years agoRemove the hack to disable -g in CFLAGS unless --with-devel
Todd C. Miller [Thu, 17 Mar 2011 22:43:46 +0000 (18:43 -0400)]
Remove the hack to disable -g in CFLAGS unless --with-devel

14 years agoThe '@' character does not normally need to be quoted.
Todd C. Miller [Thu, 17 Mar 2011 20:45:50 +0000 (16:45 -0400)]
The '@' character does not normally need to be quoted.

--HG--
branch : 1.8

14 years agoThe '@' character does not normally need to be quoted.
Todd C. Miller [Thu, 17 Mar 2011 20:45:09 +0000 (16:45 -0400)]
The '@' character does not normally need to be quoted.

14 years agoWe normaly transition from GOTDEFS to STARTDEFS on whitespace, but
Todd C. Miller [Thu, 17 Mar 2011 20:39:10 +0000 (16:39 -0400)]
We normaly transition from GOTDEFS to STARTDEFS on whitespace, but
if that whitespace is followed by a comma, we want to treat it as
part of a list and not transition.

--HG--
branch : 1.8

14 years agoAdd check for whitespace when a User_List is used for a per-user
Todd C. Miller [Thu, 17 Mar 2011 20:38:57 +0000 (16:38 -0400)]
Add check for whitespace when a User_List is used for a per-user
Defaults entry.

--HG--
branch : 1.8

14 years agoExpand quoted name checks to cover recent fixes.
Todd C. Miller [Thu, 17 Mar 2011 20:38:44 +0000 (16:38 -0400)]
Expand quoted name checks to cover recent fixes.

--HG--
branch : 1.8

14 years agoFix parsing of double-quoted names in Defaults and Aliases which was
Todd C. Miller [Thu, 17 Mar 2011 20:38:29 +0000 (16:38 -0400)]
Fix parsing of double-quoted names in Defaults and Aliases which was
broken in 601d97ea8792.

--HG--
branch : 1.8

14 years agotoke_util.c lives in $(srcdir) not $(devdir)
Todd C. Miller [Thu, 17 Mar 2011 20:37:49 +0000 (16:37 -0400)]
toke_util.c lives in $(srcdir) not $(devdir)

--HG--
branch : 1.8

14 years agoWe normaly transition from GOTDEFS to STARTDEFS on whitespace, but
Todd C. Miller [Thu, 17 Mar 2011 20:36:13 +0000 (16:36 -0400)]
We normaly transition from GOTDEFS to STARTDEFS on whitespace, but
if that whitespace is followed by a comma, we want to treat it as
part of a list and not transition.

14 years agoAdd check for whitespace when a User_List is used for a per-user
Todd C. Miller [Thu, 17 Mar 2011 20:33:11 +0000 (16:33 -0400)]
Add check for whitespace when a User_List is used for a per-user
Defaults entry.

14 years agoExpand quoted name checks to cover recent fixes.
Todd C. Miller [Thu, 17 Mar 2011 19:48:00 +0000 (15:48 -0400)]
Expand quoted name checks to cover recent fixes.

14 years agoFix parsing of double-quoted names in Defaultd and Aliases which was
Todd C. Miller [Thu, 17 Mar 2011 19:06:55 +0000 (15:06 -0400)]
Fix parsing of double-quoted names in Defaultd and Aliases which was
broken in 601d97ea8792.

14 years agotoke_util.c lives in $(srcdir) not $(devdir)
Todd C. Miller [Thu, 17 Mar 2011 18:33:25 +0000 (14:33 -0400)]
toke_util.c lives in $(srcdir) not $(devdir)

14 years agoUpdate version to 1.8.1
Todd C. Miller [Wed, 16 Mar 2011 20:09:29 +0000 (16:09 -0400)]
Update version to 1.8.1

--HG--
branch : 1.8

14 years agoDocument major changes in 1.8.1 and add upgrade notes.
Todd C. Miller [Wed, 16 Mar 2011 20:08:47 +0000 (16:08 -0400)]
Document major changes in 1.8.1 and add upgrade notes.

--HG--
branch : 1.8

14 years agoBe careful not to deref user_stat if it is NULL. This cannot currently
Todd C. Miller [Wed, 16 Mar 2011 20:08:22 +0000 (16:08 -0400)]
Be careful not to deref user_stat if it is NULL.  This cannot currently
happen in sudo but might in other programs using the parser.

--HG--
branch : 1.8

14 years agoChange trunk version to 1.8.x to distinguish from real 1.8.0.
Todd C. Miller [Wed, 16 Mar 2011 20:07:33 +0000 (16:07 -0400)]
Change trunk version to 1.8.x to distinguish from real 1.8.0.

14 years agoDocument major changes in 1.8.1 and add upgrade notes.
Todd C. Miller [Wed, 16 Mar 2011 20:06:16 +0000 (16:06 -0400)]
Document major changes in 1.8.1 and add upgrade notes.

14 years agoBe careful not to deref user_stat if it is NULL. This cannot currently
Todd C. Miller [Wed, 16 Mar 2011 19:59:44 +0000 (15:59 -0400)]
Be careful not to deref user_stat if it is NULL.  This cannot currently
happen in sudo but might in other programs using the parser.

14 years agoconfigure will not add -O2 to CFLAGS if it is already defined to
Todd C. Miller [Wed, 16 Mar 2011 17:46:43 +0000 (13:46 -0400)]
configure will not add -O2 to CFLAGS if it is already defined to
add -O2 to the CFLAGS we pass in when PIE is being used.

--HG--
branch : 1.8

14 years agoWarn about the dangers of log_input and mention iolog_file and iolog_dir
Todd C. Miller [Wed, 16 Mar 2011 17:46:29 +0000 (13:46 -0400)]
Warn about the dangers of log_input and mention iolog_file and iolog_dir
in the log_input and log_output descriptions.

--HG--
branch : 1.8

14 years agosync with git version
Todd C. Miller [Wed, 16 Mar 2011 17:46:18 +0000 (13:46 -0400)]
sync with git version

--HG--
branch : 1.8

14 years agoIt seems that h comes after i
Todd C. Miller [Wed, 16 Mar 2011 17:46:06 +0000 (13:46 -0400)]
It seems that h comes after i

--HG--
branch : 1.8

14 years agoMove log_input and log_output to their proper, sorted, location.
Todd C. Miller [Wed, 16 Mar 2011 17:45:42 +0000 (13:45 -0400)]
Move log_input and log_output to their proper, sorted, location.
Document set_utmp and utmp_runas.

--HG--
branch : 1.8

14 years agoSave the controlling tty process group before suspending so we can
Todd C. Miller [Wed, 16 Mar 2011 17:45:26 +0000 (13:45 -0400)]
Save the controlling tty process group before suspending so we can
restore it when we resume.  Fixes job control problems on Linux
caused by the previous attemp to fix resuming a shell when I/O
logging not enabled.

--HG--
branch : 1.8

14 years agoFix printing of the remainder after a newline. Fixes "sudo -l" output
Todd C. Miller [Wed, 16 Mar 2011 17:45:00 +0000 (13:45 -0400)]
Fix printing of the remainder after a newline.  Fixes "sudo -l" output
corruption that could occur in some cases.

--HG--
branch : 1.8

14 years agoAdd support for ut_exit
Todd C. Miller [Wed, 16 Mar 2011 17:44:48 +0000 (13:44 -0400)]
Add support for ut_exit

--HG--
branch : 1.8

14 years agoAdd support for controlling whether utmp is updated and which user is
Todd C. Miller [Wed, 16 Mar 2011 17:44:37 +0000 (13:44 -0400)]
Add support for controlling whether utmp is updated and which user is
listed in the entry.

--HG--
branch : 1.8

14 years agoFix typo; tupple vs. tuple
Todd C. Miller [Wed, 16 Mar 2011 17:44:20 +0000 (13:44 -0400)]
Fix typo; tupple vs. tuple

--HG--
branch : 1.8

14 years agoFor legacy utmp, strip the /dev/ prefix before trying to determine
Todd C. Miller [Wed, 16 Mar 2011 17:44:03 +0000 (13:44 -0400)]
For legacy utmp, strip the /dev/ prefix before trying to determine
slot since the ttys file does not include the /dev/ prefix.

--HG--
branch : 1.8

14 years agoAdd check for _PATH_UTMP
Todd C. Miller [Wed, 16 Mar 2011 17:43:47 +0000 (13:43 -0400)]
Add check for _PATH_UTMP

--HG--
branch : 1.8

14 years agoAdapt check_iolog_path to sessid changes
Todd C. Miller [Wed, 16 Mar 2011 17:43:24 +0000 (13:43 -0400)]
Adapt check_iolog_path to sessid changes

--HG--
branch : 1.8

14 years agoRedo utmp handling. If no getutent()/getutxent() is available,
Todd C. Miller [Wed, 16 Mar 2011 17:43:11 +0000 (13:43 -0400)]
Redo utmp handling.  If no getutent()/getutxent() is available,
assume a ttyslot-based utmp.  If getttyent() is available, use
that directly instead of ttyslot() so we don't have to do the
stdin dup2 dance.

--HG--
branch : 1.8

14 years agoMove utmp handling into utmp.c
Todd C. Miller [Wed, 16 Mar 2011 17:43:03 +0000 (13:43 -0400)]
Move utmp handling into utmp.c

--HG--
branch : 1.8

14 years agoUpdate copyright years.
Todd C. Miller [Wed, 16 Mar 2011 17:41:14 +0000 (13:41 -0400)]
Update copyright years.

--HG--
branch : 1.8

14 years agoconfigure will not add -O2 to CFLAGS if it is already defined to
Todd C. Miller [Wed, 16 Mar 2011 17:38:58 +0000 (13:38 -0400)]
configure will not add -O2 to CFLAGS if it is already defined to
add -O2 to the CFLAGS we pass in when PIE is being used.

14 years agoWarn about the dangers of log_input and mention iolog_file and iolog_dir
Todd C. Miller [Wed, 16 Mar 2011 17:26:27 +0000 (13:26 -0400)]
Warn about the dangers of log_input and mention iolog_file and iolog_dir
in the log_input and log_output descriptions.

14 years agosync with git version
Todd C. Miller [Wed, 16 Mar 2011 17:06:39 +0000 (13:06 -0400)]
sync with git version

14 years agoIt seems that h comes after i
Todd C. Miller [Wed, 16 Mar 2011 16:07:03 +0000 (12:07 -0400)]
It seems that h comes after i

14 years agoMove log_input and log_output to their proper, sorted, location.
Todd C. Miller [Wed, 16 Mar 2011 16:05:32 +0000 (12:05 -0400)]
Move log_input and log_output to their proper, sorted, location.
Document set_utmp and utmp_runas.

14 years agoSave the controlling tty process group before suspending so we can
Todd C. Miller [Wed, 16 Mar 2011 16:02:04 +0000 (12:02 -0400)]
Save the controlling tty process group before suspending so we can
restore it when we resume.  Fixes job control problems on Linux
caused by the previous attemp to fix resuming a shell when I/O
logging not enabled.

14 years agoFix printing of the remainder after a newline. Fixes "sudo -l" output
Todd C. Miller [Wed, 16 Mar 2011 14:26:10 +0000 (10:26 -0400)]
Fix printing of the remainder after a newline.  Fixes "sudo -l" output
corruption that could occur in some cases.

14 years agoAdd support for ut_exit
Todd C. Miller [Tue, 15 Mar 2011 20:18:33 +0000 (16:18 -0400)]
Add support for ut_exit

14 years agoAdd support for controlling whether utmp is updated and which user is
Todd C. Miller [Tue, 15 Mar 2011 19:53:49 +0000 (15:53 -0400)]
Add support for controlling whether utmp is updated and which user is
listed in the entry.

14 years agoFix typo; tupple vs. tuple
Todd C. Miller [Tue, 15 Mar 2011 19:52:18 +0000 (15:52 -0400)]
Fix typo; tupple vs. tuple

14 years agoFor legacy utmp, strip the /dev/ prefix before trying to determine
Todd C. Miller [Tue, 15 Mar 2011 19:51:44 +0000 (15:51 -0400)]
For legacy utmp, strip the /dev/ prefix before trying to determine
slot since the ttys file does not include the /dev/ prefix.

14 years agoAdd check for _PATH_UTMP
Todd C. Miller [Tue, 15 Mar 2011 15:56:49 +0000 (11:56 -0400)]
Add check for _PATH_UTMP

14 years agoAdapt check_iolog_path to sessid changes
Todd C. Miller [Mon, 14 Mar 2011 15:30:32 +0000 (11:30 -0400)]
Adapt check_iolog_path to sessid changes

14 years agoRedo utmp handling. If no getutent()/getutxent() is available,
Todd C. Miller [Mon, 14 Mar 2011 14:20:47 +0000 (10:20 -0400)]
Redo utmp handling.  If no getutent()/getutxent() is available,
assume a ttyslot-based utmp.  If getttyent() is available, use
that directly instead of ttyslot() so we don't have to do the
stdin dup2 dance.

14 years agoMove utmp handling into utmp.c
Todd C. Miller [Fri, 11 Mar 2011 20:54:12 +0000 (15:54 -0500)]
Move utmp handling into utmp.c

14 years agoUpdate copyright years.
Todd C. Miller [Fri, 11 Mar 2011 20:34:35 +0000 (15:34 -0500)]
Update copyright years.

14 years agoAdd "user_shell" boolean as a way to indicate to the plugin that
Todd C. Miller [Fri, 11 Mar 2011 20:02:42 +0000 (15:02 -0500)]
Add "user_shell" boolean as a way to indicate to the plugin that
the -s flag was given.

--HG--
branch : 1.8

14 years agoAdd "user_shell" boolean as a way to indicate to the plugin that
Todd C. Miller [Fri, 11 Mar 2011 20:02:13 +0000 (15:02 -0500)]
Add "user_shell" boolean as a way to indicate to the plugin that
the -s flag was given.

14 years agoMove sessid out of sudo_user.
Todd C. Miller [Fri, 11 Mar 2011 19:08:22 +0000 (14:08 -0500)]
Move sessid out of sudo_user.

--HG--
branch : 1.8

14 years agoMove sessid out of sudo_user.
Todd C. Miller [Fri, 11 Mar 2011 19:07:26 +0000 (14:07 -0500)]
Move sessid out of sudo_user.

14 years agoLog the TSID even if it is not a simple session ID.
Todd C. Miller [Fri, 11 Mar 2011 17:12:00 +0000 (12:12 -0500)]
Log the TSID even if it is not a simple session ID.

--HG--
branch : 1.8

14 years agoLog the TSID even if it is not a simple session ID.
Todd C. Miller [Fri, 11 Mar 2011 17:11:05 +0000 (12:11 -0500)]
Log the TSID even if it is not a simple session ID.

14 years agoDocument noexec in sample.sudo.conf and add back noexec_file section
Todd C. Miller [Fri, 11 Mar 2011 16:34:39 +0000 (11:34 -0500)]
Document noexec in sample.sudo.conf and add back noexec_file section
in sudoers with a note that it is deprecated.

--HG--
branch : 1.8

14 years agoDocument noexec in sample.sudo.conf and add back noexec_file section
Todd C. Miller [Fri, 11 Mar 2011 16:34:11 +0000 (11:34 -0500)]
Document noexec in sample.sudo.conf and add back noexec_file section
in sudoers with a note that it is deprecated.

14 years agoFix running commands as non-root on systems where setreuid() changes
Todd C. Miller [Fri, 11 Mar 2011 15:48:53 +0000 (10:48 -0500)]
Fix running commands as non-root on systems where setreuid() changes
the saved uid based on the effective uid we are changing to.

--HG--
branch : 1.8

14 years agoFix running commands as non-root on systems where setreuid() changes
Todd C. Miller [Fri, 11 Mar 2011 15:48:12 +0000 (10:48 -0500)]
Fix running commands as non-root on systems where setreuid() changes
the saved uid based on the effective uid we are changing to.

14 years agoMove noexec path into sudo.conf now that sudo itself handles noexec.
Todd C. Miller [Thu, 10 Mar 2011 21:14:24 +0000 (16:14 -0500)]
Move noexec path into sudo.conf now that sudo itself handles noexec.
Currently can be configured in sudoers too but is now undocumented
and will be removed in a future release.

--HG--
branch : 1.8

14 years agoDocument "Path noexec ..." in sudo.conf.
Todd C. Miller [Thu, 10 Mar 2011 21:14:11 +0000 (16:14 -0500)]
Document "Path noexec ..." in sudo.conf.
No longer document noexec_file in sudoers, it will be removed in a future
release.

--HG--
branch : 1.8

14 years agoMove noexec handling to sudo front-end where it is documented as being.
Todd C. Miller [Thu, 10 Mar 2011 21:13:54 +0000 (16:13 -0500)]
Move noexec handling to sudo front-end where it is documented as being.

--HG--
branch : 1.8

14 years agoAdd support for disabling exec via solaris privileges.
Todd C. Miller [Thu, 10 Mar 2011 21:13:27 +0000 (16:13 -0500)]
Add support for disabling exec via solaris privileges.
Includes preparation for moving noexec support out of sudoers
and into front end as documented.

--HG--
branch : 1.8

14 years agoMove noexec path into sudo.conf now that sudo itself handles noexec.
Todd C. Miller [Thu, 10 Mar 2011 21:12:33 +0000 (16:12 -0500)]
Move noexec path into sudo.conf now that sudo itself handles noexec.
Currently can be configured in sudoers too but is now undocumented
and will be removed in a future release.

14 years agoDocument "Path noexec ..." in sudo.conf.
Todd C. Miller [Thu, 10 Mar 2011 21:06:16 +0000 (16:06 -0500)]
Document "Path noexec ..." in sudo.conf.
No longer document noexec_file in sudoers, it will be removed in a future
release.

14 years agoMove noexec handling to sudo front-end where it is documented as being.
Todd C. Miller [Thu, 10 Mar 2011 20:11:49 +0000 (15:11 -0500)]
Move noexec handling to sudo front-end where it is documented as being.

14 years agoAdd support for disabling exec via solaris privileges.
Todd C. Miller [Thu, 10 Mar 2011 19:24:10 +0000 (14:24 -0500)]
Add support for disabling exec via solaris privileges.
Includes preparation for moving noexec support out of sudoers
and into front end as documented.

14 years agoOnly export the symbols corresponding to the plugin structs.
Todd C. Miller [Thu, 10 Mar 2011 17:12:55 +0000 (12:12 -0500)]
Only export the symbols corresponding to the plugin structs.

--HG--
branch : 1.8

14 years agoOnly export the symbols corresponding to the plugin structs.
Todd C. Miller [Thu, 10 Mar 2011 17:12:14 +0000 (12:12 -0500)]
Only export the symbols corresponding to the plugin structs.

14 years agoInstall plugins manually instead of using libtool. This works
Todd C. Miller [Thu, 10 Mar 2011 16:00:11 +0000 (11:00 -0500)]
Install plugins manually instead of using libtool.  This works
around a problem on AIX where libtool will install a .a file
containing the .so file instead of the .so file itself.

--HG--
branch : 1.8

14 years agoMove check into its own rule since some versions of make will run
Todd C. Miller [Thu, 10 Mar 2011 15:59:56 +0000 (10:59 -0500)]
Move check into its own rule since some versions of make will run
both targets as the default rule.

--HG--
branch : 1.8

14 years agoUpdate to libtool 2.2.10
Todd C. Miller [Thu, 10 Mar 2011 15:59:42 +0000 (10:59 -0500)]
Update to libtool 2.2.10

--HG--
branch : 1.8

14 years agoIn handle_signals(), restart the read() on EINTR to make sure we keep up
Todd C. Miller [Thu, 10 Mar 2011 15:59:27 +0000 (10:59 -0500)]
In handle_signals(), restart the read() on EINTR to make sure we keep up
with the signal pipe.  Don't return -1 on EAGAIN, it just means we have
emptied the pipe.

--HG--
branch : 1.8

14 years agoReorder functions to quiet a compiler warning.
Todd C. Miller [Thu, 10 Mar 2011 15:59:15 +0000 (10:59 -0500)]
Reorder functions to quiet a compiler warning.

--HG--
branch : 1.8

14 years agoUse the Sun Studio C compiler on Solaris if possible
Todd C. Miller [Thu, 10 Mar 2011 15:59:00 +0000 (10:59 -0500)]
Use the Sun Studio C compiler on Solaris if possible

--HG--
branch : 1.8

14 years agoInstall plugins manually instead of using libtool. This works
Todd C. Miller [Thu, 10 Mar 2011 15:57:56 +0000 (10:57 -0500)]
Install plugins manually instead of using libtool.  This works
around a problem on AIX where libtool will install a .a file
containing the .so file instead of the .so file itself.

14 years agoMove check into its own rule since some versions of make will run
Todd C. Miller [Thu, 10 Mar 2011 15:32:23 +0000 (10:32 -0500)]
Move check into its own rule since some versions of make will run
both targets as the default rule.

14 years agoUpdate to libtool 2.2.10
Todd C. Miller [Thu, 10 Mar 2011 15:31:27 +0000 (10:31 -0500)]
Update to libtool 2.2.10

14 years agoIn handle_signals(), restart the read() on EINTR to make sure we keep up
Todd C. Miller [Wed, 9 Mar 2011 16:28:51 +0000 (11:28 -0500)]
In handle_signals(), restart the read() on EINTR to make sure we keep up
with the signal pipe.  Don't return -1 on EAGAIN, it just means we have
emptied the pipe.

14 years agoReorder functions to quiet a compiler warning.
Todd C. Miller [Wed, 9 Mar 2011 16:22:34 +0000 (11:22 -0500)]
Reorder functions to quiet a compiler warning.

14 years agoUse the Sun Studio C compiler on Solaris if possible
Todd C. Miller [Wed, 9 Mar 2011 16:22:09 +0000 (11:22 -0500)]
Use the Sun Studio C compiler on Solaris if possible

14 years agoFix default setting of osversion variable.
Todd C. Miller [Tue, 8 Mar 2011 21:10:13 +0000 (16:10 -0500)]
Fix default setting of osversion variable.

--HG--
branch : 1.8

14 years agoFix default setting of osversion variable.
Todd C. Miller [Tue, 8 Mar 2011 21:09:48 +0000 (16:09 -0500)]
Fix default setting of osversion variable.

14 years agoMake two login_class entris consistent.
Todd C. Miller [Tue, 8 Mar 2011 20:58:34 +0000 (15:58 -0500)]
Make two login_class entris consistent.

--HG--
branch : 1.8

14 years agoAdd support for adding a utmp entry when allocating a new pty.
Todd C. Miller [Tue, 8 Mar 2011 20:58:20 +0000 (15:58 -0500)]
Add support for adding a utmp entry when allocating a new pty.
Requires the BSD login(3) or SYSV/POSIX getutent()/getutxent().
Currently only creates a new entry if the existing tty has
a utmp entry.

--HG--
branch : 1.8

14 years agoAvoid pulling in headers we don't need on Linux
Todd C. Miller [Tue, 8 Mar 2011 20:56:33 +0000 (15:56 -0500)]
Avoid pulling in headers we don't need on Linux
For getutx?id(), call setutx?ent() first and always call endutx?ent().

--HG--
branch : 1.8

14 years agoMake two login_class entris consistent.
Todd C. Miller [Tue, 8 Mar 2011 20:38:06 +0000 (15:38 -0500)]
Make two login_class entris consistent.

14 years agoAdd support for adding a utmp entry when allocating a new pty.
Todd C. Miller [Tue, 8 Mar 2011 20:37:40 +0000 (15:37 -0500)]
Add support for adding a utmp entry when allocating a new pty.
Requires the BSD login(3) or SYSV/POSIX getutent()/getutxent().
Currently only creates a new entry if the existing tty has
a utmp entry.

14 years agoAvoid pulling in headers we don't need on Linux
Todd C. Miller [Tue, 8 Mar 2011 20:34:34 +0000 (15:34 -0500)]
Avoid pulling in headers we don't need on Linux
For getutx?id(), call setutx?ent() first and always call endutx?ent().