- (djm) Cygwin fixes from Corinna Vinschen <vinschen@cygnus.com>
This commit is contained in:
parent
87f43ff889
commit
05dd7950f9
|
@ -1,3 +1,6 @@
|
||||||
|
20000931
|
||||||
|
- (djm) Cygwin fixes from Corinna Vinschen <vinschen@cygnus.com>
|
||||||
|
|
||||||
20000930
|
20000930
|
||||||
- (djm) Irix ssh_prng_cmds path fix from Pekka Savola <pekkas@netcore.fi>
|
- (djm) Irix ssh_prng_cmds path fix from Pekka Savola <pekkas@netcore.fi>
|
||||||
- (djm) Support in bsd-snprintf.c for long long conversions from
|
- (djm) Support in bsd-snprintf.c for long long conversions from
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
#ifdef HAVE_CYGWIN
|
#ifdef HAVE_CYGWIN
|
||||||
|
|
||||||
int binary_open(const char *filename, int flags, mode_t mode);
|
int binary_open(const char *filename, int flags, ...);
|
||||||
int binary_pipe(int fd[2]);
|
int binary_pipe(int fd[2]);
|
||||||
int check_nt_auth(int pwd_authenticated, uid_t uid);
|
int check_nt_auth(int pwd_authenticated, uid_t uid);
|
||||||
int check_ntsec(const char *filename);
|
int check_ntsec(const char *filename);
|
||||||
|
|
|
@ -1327,11 +1327,13 @@ do_child(const char *command, struct passwd * pw, const char *term,
|
||||||
"Running %.100s add %.100s %.100s %.100s\n",
|
"Running %.100s add %.100s %.100s %.100s\n",
|
||||||
options.xauth_location, display,
|
options.xauth_location, display,
|
||||||
auth_proto, auth_data);
|
auth_proto, auth_data);
|
||||||
|
#ifndef HAVE_CYGWIN /* Unix sockets are not supported */
|
||||||
if (screen != NULL)
|
if (screen != NULL)
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"Adding %.*s/unix%s %s %s\n",
|
"Adding %.*s/unix%s %s %s\n",
|
||||||
(int)(screen-display), display,
|
(int)(screen-display), display,
|
||||||
screen, auth_proto, auth_data);
|
screen, auth_proto, auth_data);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
snprintf(cmd, sizeof cmd, "%s -q -",
|
snprintf(cmd, sizeof cmd, "%s -q -",
|
||||||
options.xauth_location);
|
options.xauth_location);
|
||||||
|
@ -1339,10 +1341,12 @@ do_child(const char *command, struct passwd * pw, const char *term,
|
||||||
if (f) {
|
if (f) {
|
||||||
fprintf(f, "add %s %s %s\n", display,
|
fprintf(f, "add %s %s %s\n", display,
|
||||||
auth_proto, auth_data);
|
auth_proto, auth_data);
|
||||||
|
#ifndef HAVE_CYGWIN /* Unix sockets are not supported */
|
||||||
if (screen != NULL)
|
if (screen != NULL)
|
||||||
fprintf(f, "add %.*s/unix%s %s %s\n",
|
fprintf(f, "add %.*s/unix%s %s %s\n",
|
||||||
(int)(screen-display), display,
|
(int)(screen-display), display,
|
||||||
screen, auth_proto, auth_data);
|
screen, auth_proto, auth_data);
|
||||||
|
#endif
|
||||||
pclose(f);
|
pclose(f);
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr, "Could not run %s\n",
|
fprintf(stderr, "Could not run %s\n",
|
||||||
|
|
2
ssh.c
2
ssh.c
|
@ -244,7 +244,7 @@ main(int ac, char **av)
|
||||||
original_real_uid = getuid();
|
original_real_uid = getuid();
|
||||||
original_effective_uid = geteuid();
|
original_effective_uid = geteuid();
|
||||||
|
|
||||||
#if !defined(HAVE_SETRLIMIT) || !defined(HAVE_CYGWIN)
|
#ifdef HAVE_SETRLIMIT
|
||||||
/* If we are installed setuid root be careful to not drop core. */
|
/* If we are installed setuid root be careful to not drop core. */
|
||||||
if (original_real_uid != original_effective_uid) {
|
if (original_real_uid != original_effective_uid) {
|
||||||
struct rlimit rlim;
|
struct rlimit rlim;
|
||||||
|
|
Loading…
Reference in New Issue