зеркало из https://github.com/Azure/sonic-openssh.git
- (djm) Cygwin fixes from Corinna Vinschen <vinschen@cygnus.com>
This commit is contained in:
Родитель
87f43ff889
Коммит
05dd7950f9
|
@ -1,3 +1,6 @@
|
|||
20000931
|
||||
- (djm) Cygwin fixes from Corinna Vinschen <vinschen@cygnus.com>
|
||||
|
||||
20000930
|
||||
- (djm) Irix ssh_prng_cmds path fix from Pekka Savola <pekkas@netcore.fi>
|
||||
- (djm) Support in bsd-snprintf.c for long long conversions from
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
#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 check_nt_auth(int pwd_authenticated, uid_t uid);
|
||||
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",
|
||||
options.xauth_location, display,
|
||||
auth_proto, auth_data);
|
||||
#ifndef HAVE_CYGWIN /* Unix sockets are not supported */
|
||||
if (screen != NULL)
|
||||
fprintf(stderr,
|
||||
"Adding %.*s/unix%s %s %s\n",
|
||||
(int)(screen-display), display,
|
||||
screen, auth_proto, auth_data);
|
||||
#endif
|
||||
}
|
||||
snprintf(cmd, sizeof cmd, "%s -q -",
|
||||
options.xauth_location);
|
||||
|
@ -1339,10 +1341,12 @@ do_child(const char *command, struct passwd * pw, const char *term,
|
|||
if (f) {
|
||||
fprintf(f, "add %s %s %s\n", display,
|
||||
auth_proto, auth_data);
|
||||
#ifndef HAVE_CYGWIN /* Unix sockets are not supported */
|
||||
if (screen != NULL)
|
||||
fprintf(f, "add %.*s/unix%s %s %s\n",
|
||||
(int)(screen-display), display,
|
||||
screen, auth_proto, auth_data);
|
||||
#endif
|
||||
pclose(f);
|
||||
} else {
|
||||
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_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 (original_real_uid != original_effective_uid) {
|
||||
struct rlimit rlim;
|
||||
|
|
Загрузка…
Ссылка в новой задаче