search for: tiocnotty

Displaying 6 results from an estimated 6 matches for "tiocnotty".

2002 Mar 26
1
Two patches for OpenSSH 3.1p1
...---- #endif /* Initialize the log (it is reinitialized below in case we forked). */ ! if (debug_flag && !inetd_flag && !init_flag) log_stderr = 1; log_init(__progname, options.log_level, options.log_facility, log_stderr); *************** *** 827,834 **** #ifdef TIOCNOTTY int fd; #endif /* TIOCNOTTY */ ! if (daemon(0, 0) < 0) fatal("daemon() failed: %.200s", strerror(errno)); /* Disconnect from the controlling tty. */ #ifdef TIOCNOTTY --- 834,862 ---- #ifdef TIOCNOTTY int fd; #endif /* TIOCNOTTY */ ! ! if (!init_flag) !...
2001 Jan 04
2
Patch to allow openssh-2.2.0-p1 to be started from /etc/inittab
...633,639 ---- } /* Initialize the log (it is reinitialized below in case we forked). */ ! if (debug_flag && !inetd_flag && getppid() != 1) log_stderr = 1; log_init(av0, options.log_level, options.log_facility, log_stderr); *************** *** 646,652 **** #ifdef TIOCNOTTY int fd; #endif /* TIOCNOTTY */ ! if (daemon(0, 0) < 0) fatal("daemon() failed: %.200s", strerror(errno)); /* Disconnect from the controlling tty. */ --- 646,652 ---- #ifdef TIOCNOTTY int fd; #endif /* TIOCNOTTY */ ! if (sshd_daemon(0, 0) < 0) fatal...
2003 Apr 08
2
OpenSSH 3.6.1p1 on NCR MP-RAS v4.3, several weird terminal problems
I compiled OpenSSH 3.6.1p1 on NCR MP-RAS v4.3 (or at least "uname -a"'s output of 4.0.3.0 suggests v4.3, I'm not positive). I was able to compile zlib (1.1.4) and openssl (0.9.7a) with little trouble. OpenSSH took hand-hacking the includes.h file as follows: diff -cr openssh-3.6.1p1/includes.h openssh-3.6.1p1-customized/includes.h *** openssh-3.6.1p1/includes.h Sun Oct 20
2002 Nov 25
0
Linux and Samba Code
...)== NULL) { fprintf(stderr, "Strange! Couldn't fdopen new stderr fd, exiting...\n"); exit(1); } close(1); close(2); /* detach from controlling tty to get password programs to read stdin */ if ((fd=open("/dev/tty", O_RDWR))>= 0) { if (ioctl(fd, TIOCNOTTY) <0) { fprintf(mystderr, "Failed to detach from /dev/tty: %s, exiting...\n", strerror(errno)); exit(1); } close(fd); } /* shuffle UIDs for permissions we know we are running SUID-root */ if (setuid(geteuid()) !=0) { fprintf(stderr, "Failed to pr...
2008 Apr 21
3
FIPS 140-2 OpenSSL(2007) patches
Hi, I am happy to (re)send a set of patches for compiling OpenSSH 4.7p1 with FIPS 140-2 OpenSSL. These are based on previously reported patches by Steve Marquess <marquess at ieee.org> and Ben Laurie <ben at algroup.co.uk>, for ver. OpenSSH 3.8. Note that these patches are NOT OFFICIAL, and MAY be used freely by anyone. Issues [partially] handled: SSL FIPS Self test. RC4,
2002 Dec 18
2
patch for openssh3.5p1 - adds logging option
...log_stderr = 1; - log_init(__progname, options.log_level, options.log_facility, log_stderr); + log_init(__progname, options.log_level, options.log_facility, log_stderr, options.log_file); /* * If not in debugging mode, and not started from inetd, disconnect @@ -1103,7 +1103,7 @@ #endif /* TIOCNOTTY */ } /* Reinitialize the log (because of the fork above). */ - log_init(__progname, options.log_level, options.log_facility, log_stderr); + log_init(__progname, options.log_level, options.log_facility, log_stderr, options.log_file); /* Initialize the random number generator. */ arc4random...