]> sourceware.org Git - cygwin-apps/login.git/log
cygwin-apps/login.git
5 years agoFix the issue that GNU screen and tmux cannot read tty input if they are started... master v1_13
Takashi Yano [Sat, 9 Mar 2019 01:11:54 +0000 (10:11 +0900)]
Fix the issue that GNU screen and tmux cannot read tty input if they are started in a telnet session.

* login.c (main): Add chown() and chmod() to change the ownership
and the permissions of tty.

6 years agofix gcc warnings v1_12
Corinna Vinschen [Mon, 18 Jun 2018 11:55:37 +0000 (13:55 +0200)]
fix gcc warnings

Signed-off-by: Corinna Vinschen <vinschen@redhat.com>
6 years agoFix the issue that login command with -f flag fails to switch user account.
Takashi Yano [Sat, 16 Jun 2018 12:59:30 +0000 (21:59 +0900)]
Fix the issue that login command with -f flag fails to switch user account.

* login.c (main): Use getpwnam_r() instead of getpwnam() to prevent
the area pointed to by pwd from being overwritten by other calls of
getpw*() family functions.
* login.c (isROOT_UID): Remove checking SeIncreaseQuotaPrivilege
privilege because the account cyg_server created by csih does not
have this privilege.
* winsec.c (getUserInfoForUID): Fix the first argument of the second
NetUserGetInfo() call so that it can check user information locally
if the machine is on a domain.

Refer to the following post for detail.
https://cygwin.com/ml/cygwin/2018-06/msg00146.html

6 years agoAdd meson build infrastructure
Yaakov Selkowitz [Fri, 22 Dec 2017 02:33:45 +0000 (20:33 -0600)]
Add meson build infrastructure

6 years agoFix implicit declarations
Yaakov Selkowitz [Fri, 22 Dec 2017 02:31:19 +0000 (20:31 -0600)]
Fix implicit declarations

test_winsec.c:53:10: warning: implicit declaration of function ‘isprint’
winpriv.c:189:9: warning: implicit declaration of function ‘stricmp’

9 years ago * login.c: Minor cleanups. Avoid compiler warnings.
Corinna Vinschen [Wed, 15 Oct 2014 18:56:06 +0000 (18:56 +0000)]
* login.c: Minor cleanups.  Avoid compiler warnings.
(sccsid): Mark as used.
(testUserRightsByUID): Move declaration down to isROOT_UID function.
(getstr): Remove unused function.
(currentUserIsLocalSystem): Drop declaration of unused external
function.
(currentUserIsMemberOfLocalAdministrators): Ditto.
(uidIsMemberOfLocalAdministrators): Enable declaration.
(testUserRightsByUID): Declare.
(isROOT_UID): Drop SeCreateTokenPrivilege as required privilege.
Ignore old Windows versions.  Align comments.

9 years ago* winpriv.c (getSID): Return NULL, not uninitialized variable, in
Yaakov Selkowitz [Wed, 15 Oct 2014 16:11:00 +0000 (16:11 +0000)]
* winpriv.c (getSID): Return NULL, not uninitialized variable, in
case of failure.

9 years ago* Makefile (install): Do not strip. v1_11
Yaakov Selkowitz [Wed, 15 Oct 2014 05:49:41 +0000 (05:49 +0000)]
* Makefile (install): Do not strip.

9 years ago* Makefile: Throughout, add rules for lastlog.exe and lastlog.8.
Yaakov Selkowitz [Wed, 15 Oct 2014 05:41:11 +0000 (05:41 +0000)]
* Makefile: Throughout, add rules for lastlog.exe and lastlog.8.
* lastlog.c: New file.
* lastlog.8: New file.

9 years ago* winsec.c: Throughout, remove autoloading of advapi32 and
Yaakov Selkowitz [Wed, 15 Oct 2014 01:44:34 +0000 (01:44 +0000)]
* winsec.c: Throughout, remove autoloading of advapi32 and
netapi32 symbols and use direct function calls instead.
* Makefile (login.exe): Add -lnetapi32.
(test_winsec.exe): Ditto.

9 years ago* login.1: Update for removal of 9x support.
Yaakov Selkowitz [Wed, 15 Oct 2014 01:39:23 +0000 (01:39 +0000)]
* login.1: Update for removal of 9x support.

9 years agoDrop support for Windows 9x.
Yaakov Selkowitz [Tue, 14 Oct 2014 00:19:24 +0000 (00:19 +0000)]
Drop support for Windows 9x.
* Makefile (login.exe): Remove -lcrypt.
(test_winsec.exe): Ditto.
* login.c (is_winnt): Remove definition.
(main): Make is_winnt code path unconditional.

9 years ago* Makefile (docdir): Fix for unversioned docdirs.
Yaakov Selkowitz [Mon, 13 Oct 2014 22:12:12 +0000 (22:12 +0000)]
* Makefile (docdir): Fix for unversioned docdirs.

9 years ago* test_winsec.c: Include <stdlib.h> for exit().
Yaakov Selkowitz [Mon, 13 Oct 2014 22:09:55 +0000 (22:09 +0000)]
* test_winsec.c: Include <stdlib.h> for exit().

9 years ago* winpriv.c: Fix includes for mingw-w64 w32api-headers.
Yaakov Selkowitz [Mon, 13 Oct 2014 22:08:18 +0000 (22:08 +0000)]
* winpriv.c: Fix includes for mingw-w64 w32api-headers.

15 years agoRelease 1.10. v1_10
Charles Wilson [Tue, 21 Apr 2009 01:16:23 +0000 (01:16 +0000)]
Release 1.10.

15 years agoIncorporate changes from 1.9-8
Charles Wilson [Tue, 21 Apr 2009 01:13:26 +0000 (01:13 +0000)]
Incorporate changes from 1.9-8

15 years agoInitial import of Cygwin login port (from version 1.9) start v1_9
Charles Wilson [Tue, 21 Apr 2009 01:01:52 +0000 (01:01 +0000)]
Initial import of Cygwin login port (from version 1.9)

This page took 0.028211 seconds and 5 git commands to generate.