search for: have_cygwin

Displaying 20 results from an estimated 93 matches for "have_cygwin".

2000 Sep 02
2
[PATCH]: Cygwin port of 2.2.0p1
...les: openssl-0.9.5a.README readme openssl-0.9.5a.tar.gz binaries openssl-0.9.5a-src.tar.gz sources Regards, Corinna ChangeLog: ========== - Makefile.in: Changed to support $EXEEXT transparently. Added `cygwin_util.o' to the dependencies of LIBSSH_OBJS. - acconfig.h: Add defines for HAVE_CYGWIN and BROKEN_VHANGUP. - auth-passwd.c: Support getting NT passwords via Cygwin special functions. Disable check for uid 0 when HAVE_CYGWIN is set. - auth1.c: Reject changing user context if not authenticated via password under Windows NT. Disable check for uid 0 when HAVE_CYGWIN is set. -...
2002 Jun 07
4
openssh for UWIN
...# include <uwin.h> + #endif #ifdef HAVE_CRYPT_H # include <crypt.h> *************** *** 114,119 **** --- 117,125 ---- /* deny if no user. */ if (pw == NULL) return 0; + #ifdef _UWIN + return(uwin_mktoken(pw->pw_name,password,UWIN_TOKCLOSE)!=0); + #endif #ifndef HAVE_CYGWIN if (pw->pw_uid == 0 && options.permit_root_login != PERMIT_YES) return 0; *** readconf.c.orig Mon Feb 04 20:26:35 2002 --- readconf.c Thu May 30 16:55:00 2002 *************** *** 200,206 **** u_short host_port) { Forward *fwd; ! #ifndef HAVE_CYGWIN extern uid_t...
2000 Aug 08
1
[PATCH] Updated patch to Cygwin port of 2.1.1p4
...Windows and there's no coherence between privileged user and uid 0. So I send the complete patch again with the above changes. ChangeLog: ========== - Makefile.in: Changed to support $EXEEXT transparently. Added `cygwin_util.o' to the dependencies of LIBSSH_OBJS. - acconfig.h: Add HAVE_CYGWIN. - auth-passwd.c: Support getting NT passwords via Cygwin special functions. Disable check for uid 0 when HAVE_CYGWIN is set. - auth1.c: Reject changing user context if not authenticated via password under Windows NT. Disable check for uid 0 when HAVE_CYGWIN is set. - authfile.c: Disabl...
2005 Feb 24
0
[PATCH] Drop two useless HAVE_CYGWIN
...n Cygwin. So the Cygwin special case is useless. - When building OpenSSH for Cygwin, the minires-devel package (development package for the special "minires" resolver library for Cygwin) is required. But this package also brings its own version of arpa/nameser.h, so the #ifndef HAVE_CYGWIN is useless. Corinna Index: openbsd-compat/bsd-openpty.c =================================================================== RCS file: /cvs/openssh_cvs/openbsd-compat/bsd-openpty.c,v retrieving revision 1.3 diff -p -u -r1.3 bsd-openpty.c --- openbsd-compat/bsd-openpty.c 17 Feb 2004 05:49:55 -000...
2002 Jul 04
1
[PATCH]: Remove HAVE_CYGWIN in favor of NO_IPPORT_RESERVED_CONCEPT
...efined on platforms not supporting the concept of "privileged" ports only accessible by privileged users but which allow everyone to use these ports. This patch removes some Cygwin dependencies from the code. Otherwise, if this patch isn't applied, we definitely need another #ifndef HAVE_CYGWIN in serverloop.c otherwise serverside port forwarding for reserverd ports doesn't work in Cygwin's 3.4 version. The official Cygwin release of 3.4 contains that additional HAVE_CYGWIN patch so far. Corinna Index: acconfig.h ================================================================...
2003 Jan 09
1
[PATCH] Allow multiple accounts on Windows 9x/Me
...=========================================== RCS file: /cvs/openssh_cvs/session.c,v retrieving revision 1.227 diff -u -p -r1.227 session.c --- session.c 7 Jan 2003 06:38:59 -0000 1.227 +++ session.c 9 Jan 2003 22:23:15 -0000 @@ -1204,7 +1204,7 @@ void do_setusercontext(struct passwd *pw) { #ifdef HAVE_CYGWIN - if (is_winnt) { + { #else /* HAVE_CYGWIN */ if (getuid() == 0 || geteuid() == 0) { #endif /* HAVE_CYGWIN */ @@ -1257,6 +1257,9 @@ do_setusercontext(struct passwd *pw) permanently_set_uid(pw); #endif } +#ifdef HAVE_CYGWIN + if (is_winnt) +#endif if (getuid() != pw->pw_uid || geteuid...
2001 May 03
1
[PATCH]: Workaround a security leak on Windows
...===================== RCS file: /cvs/openssh_cvs/ssh-agent.c,v retrieving revision 1.54 diff -u -p -r1.54 ssh-agent.c --- ssh-agent.c 2001/04/04 01:53:21 1.54 +++ ssh-agent.c 2001/05/03 12:19:50 @@ -714,6 +714,9 @@ main(int ac, char **av) #ifdef HAVE_SETRLIMIT struct rlimit rlim; #endif +#ifdef HAVE_CYGWIN + int prev_mask; +#endif pid_t pid; char *shell, *format, *pidstr, pidstrbuf[1 + 3 * sizeof pid]; extern int optind; @@ -805,10 +808,19 @@ main(int ac, char **av) memset(&sunaddr, 0, sizeof(sunaddr)); sunaddr.sun_family = AF_UNIX; strlcpy(sunaddr.sun_path, socket_name, sizeof(sunadd...
2002 Jun 25
3
BSD/OS with privsep
...#endif } static Authctxt* privsep_preauth(void) { Authctxt *authctxt = NULL; int status; pid_t pid; /* Set up unprivileged child process to deal with network data */ --- session.c.orig Tue Jun 25 13:28:07 2002 +++ session.c Tue Jun 25 13:33:16 2002 @@ -1154,22 +1154,26 @@ { #ifdef HAVE_CYGWIN if (is_winnt) { #else /* HAVE_CYGWIN */ if (getuid() == 0 || geteuid() == 0) { #endif /* HAVE_CYGWIN */ #ifdef HAVE_SETPCRED setpcred(pw->pw_name); #endif /* HAVE_SETPCRED */ #ifdef HAVE_LOGIN_CAP - if (setusercontext(lc, pw, pw->pw_uid, - (LOGIN_SETALL & ~LOGIN_SETPATH)...
2001 Dec 18
2
[PATCH]: Fix potential security hole in Cygwin version
...=================================================================== RCS file: /cvs/openssh_cvs/auth1.c,v retrieving revision 1.46 diff -u -p -r1.46 auth1.c --- auth1.c 6 Dec 2001 17:55:26 -0000 1.46 +++ auth1.c 18 Dec 2001 19:07:12 -0000 @@ -313,9 +313,9 @@ do_authloop(Authctxt *authctxt) #ifdef HAVE_CYGWIN if (authenticated && - !check_nt_auth(type == SSH_CMSG_AUTH_PASSWORD,pw->pw_uid)) { + !check_nt_auth(type == SSH_CMSG_AUTH_PASSWORD, pw)) { packet_disconnect("Authentication rejected for uid %d.", - (int)pw->pw_uid); + pw ? (int)pw->pw_uid : -1);...
2001 Apr 02
1
[PATCH]: scp could hang in Cygwin
...============================= RCS file: /cvs/openssh_cvs/scp.c,v retrieving revision 1.66 diff -u -p -r1.66 scp.c --- scp.c 2001/03/29 00:43:54 1.66 +++ scp.c 2001/04/02 19:47:14 @@ -291,6 +291,9 @@ main(argc, argv) case 't': /* "to" */ iamremote = 1; tflag = 1; +#ifdef HAVE_CYGWIN + setmode (0, O_BINARY); +#endif break; default: usage(); Index: openbsd-compat/bsd-cygwin_util.c =================================================================== RCS file: /cvs/openssh_cvs/openbsd-compat/bsd-cygwin_util.c,v retrieving revision 1.3 diff -u -p -r1.3 bsd-cygwin_util.c...
2001 Jun 04
1
[PATCH]: Add check_ntsec to ownership/mode tests
...le: /cvs/openssh_cvs/auth-rhosts.c,v retrieving revision 1.17 diff -u -p -r1.17 auth-rhosts.c --- auth-rhosts.c 2001/04/12 23:34:35 1.17 +++ auth-rhosts.c 2001/06/04 10:05:34 @@ -228,6 +228,9 @@ auth_rhosts2(struct passwd *pw, const ch pw->pw_name, pw->pw_dir); return 0; } +#ifdef HAVE_CYGWIN + if (check_ntsec(pw->pw_dir)) +#endif if (options.strict_modes && ((st.st_uid != 0 && st.st_uid != pw->pw_uid) || (st.st_mode & 022) != 0)) { Index: auth-rsa.c =================================================================== RCS file: /cvs/openssh_cvs/au...
2004 Mar 02
3
environ problem in 3.8p1
3.8p1 added the following to main() in sshd.c: #ifndef HAVE_CYGWIN /* Clear environment */ environ[0] = NULL; #endif This breaks the getenv("TZ") in session.c and causes logins to occur in GMT time. It also causes any sshd syslog messages to be written in GMT time. I'm on SCO Openserver 5.0.7, but this looks like it should affect all platform...
2001 May 23
1
[PATCH]: Drop the use of `check_nt_auth'.
...enssh_cvs/auth1.c,v retrieving revision 1.40 diff -u -p -r1.40 auth1.c --- auth1.c 2001/03/24 00:37:59 1.40 +++ auth1.c 2001/05/23 09:40:49 @@ -313,14 +313,7 @@ do_authloop(Authctxt *authctxt) fatal("INTERNAL ERROR: authenticated invalid user %s", authctxt->user); -#ifdef HAVE_CYGWIN - if (authenticated && - !check_nt_auth(type == SSH_CMSG_AUTH_PASSWORD,pw->pw_uid)) { - packet_disconnect("Authentication rejected for uid %d.", - (int)pw->pw_uid); - authenticated = 0; - } -#else +#ifndef HAVE_CYGWIN /* Special handling for root */ if (au...
2003 Aug 03
2
[PATCH] Fix minor breakage on Cygwin: auth-passwd.c and session.c
Hi All. I tried building -current on Cygwin but got a couple of minor errors. The first is in auth-passwd.c where it appears Ben got a bit over-enthusiastic cleaning up :-). The patch restores the relevant "#ifdef HAVE_CYGWIN" fragment. The second is in the send-break code in session.c, which won't compile because Cygwin apparently doesn't have TIOCSBRK and TIOCCBRK ioctls. With the patch session_break_req just returns 0 if TIOCSBRK and TIOCCBRK are not defined (which I think is the right thing to do, bu...
2002 Jul 15
1
Patch: remove unused tty variable from session.c
...===== RCS file: /cvs/openssh/session.c,v retrieving revision 1.210 diff -u -r1.210 session.c --- session.c 4 Jul 2002 03:08:41 -0000 1.210 +++ session.c 15 Jul 2002 11:50:14 -0000 @@ -1159,8 +1159,6 @@ void do_setusercontext(struct passwd *pw) { - char tty='\0'; - #ifdef HAVE_CYGWIN if (is_winnt) { #else /* HAVE_CYGWIN */ -- Darren Tucker (dtucker at zip.com.au) GPG Fingerprint D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69 Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.
2019 Feb 22
3
[PATCH 2/2] Cygwin: implement case-insensitive Unicode user and group name matching
On Wed, 20 Feb 2019 at 23:54, Corinna Vinschen <vinschen at redhat.com> wrote: > The previous revert enabled case-insensitive user names again. This > patch implements the case-insensitive user and group name matching. > To allow Unicode chars, implement the matcher using wchar_t chars in > Cygwin-specific code. Keep the generic code changes as small as possible. > Cygwin:
2001 Nov 20
1
[PATCH]: Allow SSHD to install as service under WIndows 9x/Me
...nize. + */ + if (is_winnt) + return; + if (! (kerneldll = LoadLibrary("KERNEL32.DLL"))) + return; + if (! (RegisterServiceProcess = (DWORD (*)(DWORD, DWORD)) + GetProcAddress(kerneldll, "RegisterServiceProcess"))) + return; + RegisterServiceProcess(0, 1); +} + #endif /* HAVE_CYGWIN */ Index: openbsd-compat/bsd-cygwin_util.h =================================================================== RCS file: /cvs/openssh_cvs/openbsd-compat/bsd-cygwin_util.h,v retrieving revision 1.4 diff -u -p -r1.4 bsd-cygwin_util.h --- openbsd-compat/bsd-cygwin_util.h 2001/04/13 14:28:43 1.4 +++ op...
2001 Feb 21
2
SCO 5.0.5 setluid patch
I downloaded openssh-2.5.1p1 as soon as it was on the ftp servers just to get the setluid patch. After compiling and installing on 5.0.5 I saw that the luid still wasn't being set correctly whether sshd was run from inetd or as a daemon from /etc/rc2.d/. I fiddled around and moved the setluid() stuff up higher in session.c and now luid is now being set correctly. I provided a regular diff
2002 Jun 14
1
[PATCH]: auth-passwd.c: Eliminate a Cygwin special case
Hi, as it turned out on the Cygwin mailing list, the special handling of empty password in auth-passwd.c when running under Windows NT results in problems. Cause: The authentication methode "none" calls auth_password() with an empty password. A piece of HAVE_CYGWIN code allows empty passwords even if PermitEmptyPasswords is set to "no". This in turn results in calling the Windows internal logon routine with an invalid password, just because the auth method "none" is enabled. Result: Since many NT systems are set so that a couple of inva...
2000 Aug 01
2
Port of OpenSSH-2.1.1p4 to Cygwin
...he concept of real and effective uid's is supported as far as it's possible with Windows NT/W2K. The result is a small, more predictable patch then the previous version. The patch contains now changes to configure.in and config.h.in, which support *-*-cygwin as target and which define HAVE_CYGWIN similar to the NeXT patch. The patch to `configure' is _not_ included. It's very long and not worth to send since it's easy to rebuild from `configure.in'. We still have a problem with the sources: One file is called `aux.c' which is a special filename on Windows systems. This...