Displaying 14 results from an estimated 14 matches for "binary_open".
2000 Sep 02
2
[PATCH]: Cygwin port of 2.2.0p1
...t changing user context if not authenticated via
password under Windows NT. Disable check for uid 0 when HAVE_CYGWIN
is set.
- authfile.c: Disable check for file modes when HAVE_CYGWIN is set.
- bsd-daemon.c: Avoid possible race condition under Cygwin.
- bsd-mktemp.c: Define `open' as `binary_open' when HAVE_CYGWIN is set.
- channels.c: Disable check for uid 0 when HAVE_CYGWIN is set.
- config.h.in: Add HAVE_CYGWIN.
- configure.in: Add *-*-cygwin as target. Call AC_EXEEXT now.
- cygwin_util.c: New file containing `binary_open' and `binary_pipe'
function.
- defines.h: Chec...
2006 Sep 01
0
[PATCH] Cygwin: Avoid implicit declaration warnings
Hi,
I have left this slip through already too long. When compiling
openbsd-compat/bsd-cygwin_util.c, the following warnings appear:
openbsd-compat/bsd-cygwin_util.c: In function `binary_open':
openbsd-compat/bsd-cygwin_util.c:67: warning: implicit declaration of function `open'
openbsd-compat/bsd-cygwin_util.c: In function `binary_pipe':
openbsd-compat/bsd-cygwin_util.c:73: warning: implicit declaration of function `pipe'
The below patch fixes that.
Index: openb...
2000 Aug 08
1
[PATCH] Updated patch to Cygwin port of 2.1.1p4
...t changing user context if not authenticated via
password under Windows NT. Disable check for uid 0 when HAVE_CYGWIN
is set.
- authfile.c: Disable check for file modes when HAVE_CYGWIN is set.
- bsd-daemon.c: Avoid possible race condition under Cygwin.
- bsd-mktemp.c: Define `open' as `binary_open' when HAVE_CYGWIN is set.
- channels.c: Disable check for uid 0 when HAVE_CYGWIN is set.
- config.h.in: Add HAVE_CYGWIN.
- configure.in: Add *-*-cygwin as target. Call AC_EXEEXT now.
- cygwin_util.c: New file containing `binary_open' and `binary_pipe'
function.
- includes.h: Use...
2001 Nov 20
1
[PATCH]: Allow SSHD to install as service under WIndows 9x/Me
...======================================
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
+++ openbsd-compat/bsd-cygwin_util.h 2001/11/20 12:44:23
@@ -26,6 +26,7 @@ int binary_open(const char *filename, in
int binary_pipe(int fd[2]);
int check_nt_auth(int pwd_authenticated, uid_t uid);
int check_ntsec(const char *filename);
+void register_9x_service(void);
#define open binary_open
#define pipe binary_pipe
Index: openbsd-compat/daemon.c
=================================...
2004 Aug 22
0
[PATCH] openbsd-compat/mktemp.c: Compile time error with gcc 3.4
...pat/mktemp.c 24 Nov 2003 02:33:34 -0000 1.6
+++ openbsd-compat/mktemp.c 22 Aug 2004 17:19:13 -0000
@@ -40,11 +40,6 @@
static char rcsid[] = "$OpenBSD: mktemp.c,v 1.17 2003/06/02 20:18:37 millert Exp $";
#endif /* LIBC_SCCS and not lint */
-#ifdef HAVE_CYGWIN
-#define open binary_open
-extern int binary_open();
-#endif
-
static int _gettemp(char *, int *, int, int);
int
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat, Inc.
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 May 23
1
[PATCH]: Drop the use of `check_nt_auth'.
...===================================
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
+++ openbsd-compat/bsd-cygwin_util.h 2001/05/23 09:40:50
@@ -24,7 +24,6 @@
int binary_open(const char *filename, int flags, ...);
int binary_pipe(int fd[2]);
-int check_nt_auth(int pwd_authenticated, uid_t uid);
int check_ntsec(const char *filename);
#define open binary_open
Corinna
--
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.
mailto:vinschen at redhat.com
2001 Apr 02
1
[PATCH]: scp could hang in Cygwin
...cvs/openssh_cvs/openbsd-compat/bsd-cygwin_util.h,v
retrieving revision 1.3
diff -u -p -r1.3 bsd-cygwin_util.h
--- openbsd-compat/bsd-cygwin_util.h 2001/02/18 01:30:56 1.3
+++ openbsd-compat/bsd-cygwin_util.h 2001/04/02 19:47:14
@@ -20,6 +20,8 @@
#ifdef HAVE_CYGWIN
+#include <io.h>
+
int binary_open(const char *filename, int flags, ...);
int binary_pipe(int fd[2]);
int check_nt_auth(int pwd_authenticated, uid_t uid);
--
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.
mailto:vinschen at redhat.com
2001 Jul 11
2
[PATCH]: Cygwin: Allow sshd to switch user context without password
...(GetVersion() < 0x80000000)
+#define ntsec_on(c) ((c) && strstr((c),"ntsec") && !strstr((c),"nontsec"))
+#define ntea_on(c) ((c) && strstr((c),"ntea") && !strstr((c),"nontea"))
+
#if defined(open) && open == binary_open
# undef open
#endif
@@ -61,12 +65,34 @@ int check_nt_auth(int pwd_authenticated,
* context on NT systems is the password authentication. So
* we deny all requsts for changing the user context if another
* authentication method is used.
- * This may change in future when a special openssh
-...
2001 Dec 18
2
[PATCH]: Fix potential security hole in Cygwin version
...=====================
RCS file: /cvs/openssh_cvs/openbsd-compat/bsd-cygwin_util.h,v
retrieving revision 1.5
diff -u -p -r1.5 bsd-cygwin_util.h
--- openbsd-compat/bsd-cygwin_util.h 27 Nov 2001 01:19:44 -0000 1.5
+++ openbsd-compat/bsd-cygwin_util.h 18 Dec 2001 19:07:14 -0000
@@ -24,7 +24,7 @@
int binary_open(const char *filename, int flags, ...);
int binary_pipe(int fd[2]);
-int check_nt_auth(int pwd_authenticated, uid_t uid);
+int check_nt_auth(int pwd_authenticated, struct passwd *pw);
int check_ntsec(const char *filename);
void register_9x_service(void);
--
Corinna Vinschen
Cygwin Developer
Re...
2019 Feb 22
2
[PATCH 2/2] Cygwin: implement case-insensitive Unicode user and group name matching
...tern(string, sub)) {
if (negated)
return -1; /* Negative */
else
diff --git a/openbsd-compat/bsd-cygwin_util.h b/openbsd-compat/bsd-cygwin_util.h
index 202c055dbae7..55c5a5b81b44 100644
--- a/openbsd-compat/bsd-cygwin_util.h
+++ b/openbsd-compat/bsd-cygwin_util.h
@@ -55,6 +55,7 @@ int binary_open(const char *, int , ...);
int check_ntsec(const char *);
char **fetch_windows_environment(void);
void free_windows_environment(char **);
+int cygwin_ug_match_pattern_list(const char *, const char *);
#ifndef NO_BINARY_OPEN
#define open binary_open
diff --git a/servconf.c b/servconf.c
index 4...
2002 Jul 31
0
[PATCH]: Match Cygwin version check to reality
...amp; strstr((c),"ntsec") && !strstr((c),"nontsec"))
+#define ntsec_off(c) ((c) && strstr((c),"nontsec"))
#define ntea_on(c) ((c) && strstr((c),"ntea") && !strstr((c),"nontea"))
#if defined(open) && open == binary_open
@@ -74,6 +75,56 @@ int binary_pipe(int fd[2])
return ret;
}
+#define HAS_CREATE_TOKEN 1
+#define HAS_NTSEC_BY_DEFAULT 2
+
+static int has_capability(int what)
+{
+ /* has_capability() basically calls uname() and checks if
+ specific capabilities of Cygwin can be evaluated from that.
+ Th...
2011 Aug 14
10
Call for testing: OpenSSH-5.9
Hi,
OpenSSH 5.9 is almost ready for release, so we would appreciate testing
on as many platforms and systems as possible. This release contains a
couple of new features and changes and bug fixes. Testing of the new
sandboxed privilege separation mode (see below) would be particularly
appreciated.
Snapshot releases for portable OpenSSH are available from
http://www.mindrot.org/openssh_snap/
The
2002 Nov 09
1
[PATCH] Two Cygwin related patches
...amp; strstr((c),"ntsec") && !strstr((c),"nontsec"))
+#define ntsec_off(c) ((c) && strstr((c),"nontsec"))
#define ntea_on(c) ((c) && strstr((c),"ntea") && !strstr((c),"nontea"))
#if defined(open) && open == binary_open
@@ -74,6 +75,56 @@ int binary_pipe(int fd[2])
return ret;
}
+#define HAS_CREATE_TOKEN 1
+#define HAS_NTSEC_BY_DEFAULT 2
+
+static int has_capability(int what)
+{
+ /* has_capability() basically calls uname() and checks if
+ specific capabilities of Cygwin can be evaluated from that.
+ Th...