Displaying 3 results from an estimated 3 matches for "wenv_arr".
2010 Feb 19
1
[PATCH/cygwin] reduce number of propagated environment variables
...s/openssh/openbsd-compat/bsd-cygwin_util.c,v
retrieving revision 1.21
diff -u -p -r1.21 bsd-cygwin_util.c
--- openbsd-compat/bsd-cygwin_util.c 8 Mar 2009 00:40:28 -0000 1.21
+++ openbsd-compat/bsd-cygwin_util.c 19 Feb 2010 17:35:28 -0000
@@ -85,23 +85,14 @@ static struct wenv {
size_t namelen;
} wenv_arr[] = {
{ NL("ALLUSERSPROFILE=") },
- { NL("COMMONPROGRAMFILES=") },
{ NL("COMPUTERNAME=") },
{ NL("COMSPEC=") },
{ NL("CYGWIN=") },
- { NL("NUMBER_OF_PROCESSORS=") },
{ NL("OS=") },
{ NL("PATH=") },
{ NL(&q...
2004 Aug 18
5
[Bug 915] [PATCH] Only copy basic Windows environment
http://bugzilla.mindrot.org/show_bug.cgi?id=915
Summary: [PATCH] Only copy basic Windows environment
Product: Portable OpenSSH
Version: -current
Platform: ix86
OS/Version: Cygwin on NT/2k
Status: NEW
Severity: security
Priority: P2
Component: sshd
AssignedTo: openssh-bugs at mindrot.org
2006 May 04
2
xmalloc(foo*bar) -> xcalloc(foo, bar) for Portable
...:57 -0000
@@ -268,7 +268,7 @@ fetch_windows_environment(void)
char **e, **p;
unsigned int i, idx = 0;
- p = xmalloc((WENV_SIZ + 1) * sizeof(char *));
+ p = xcalloc(WENV_SIZ + 1, sizeof(char *));
for (e = environ; *e != NULL; ++e) {
for (i = 0; i < WENV_SIZ; ++i) {
if (!strncmp(*e, wenv_arr[i].name, wenv_arr[i].namelen))
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.