search for: tcsetattr

Displaying 20 results from an estimated 69 matches for "tcsetattr".

Did you mean: tcgetattr
2005 Oct 10
2
[Bug 1101] terminal allocation hangs ssh at a blocking tcsetattr (-t option)
http://bugzilla.mindrot.org/show_bug.cgi?id=1101 Summary: terminal allocation hangs ssh at a blocking tcsetattr (- t option) Product: Portable OpenSSH Version: 4.2p1 Platform: ix86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: ssh AssignedTo: bitbucket at mindrot.org R...
2001 Oct 18
0
Patch for hanging ssh-add under Solaris CDE
...#include <readpassphrase.h> -#ifdef TCSASOFT -# define _T_FLUSH (TCSAFLUSH|TCSASOFT) -#else -# define _T_FLUSH (TCSAFLUSH) -#endif - char * readpassphrase(prompt, buf, bufsiz, flags) const char *prompt; @@ -102,13 +96,13 @@ term.c_cc[VSTATUS] = _POSIX_VDISABLE; } #endif - (void)tcsetattr(input, _T_FLUSH, &term); + (void)tcsetattr(input, TCSANOW, &term); } if (!(flags & RPP_ECHO_ON)) { if (tcgetattr(input, &term) == 0 && (term.c_lflag & ECHO)) { echo = 1; term.c_lflag &= ~ECHO; - (void)tcsetattr(input, _T_FLUSH, &term); + (void...
2001 Mar 30
4
linux tcsetattr failed
does anyone else see this on linux: localhost sshd[14418]: Accepted password for stevesk from 15.126.45.158 port 49594 localhost sshd[14418]: Setting tty modes failed: Invalid argument redhat with kernel 2.2.17. ttymodes.c: /* Set the new modes for the terminal. */ if (tcsetattr(fd, TCSANOW, &tio) < 0) log("Setting tty modes failed: %.100s", strerror(errno)); return;
2008 May 26
4
xvm-gate: arrow keys broken in pygrub
...d with such a change the arrow keys start working for me inside pygrub. diff --git a/tools/console/client/main.c b/tools/console/client/main.c --- a/tools/console/client/main.c +++ b/tools/console/client/main.c @@ -164,7 +164,7 @@ new_term = *old; cfmakeraw(&new_term); - tcsetattr(fd, TCSAFLUSH, &new_term); + tcsetattr(fd, TCSANOW, &new_term); } static void restore_term(int fd, struct termios *old) This message posted from opensolaris.org
2020 Jun 01
0
[PATCH nbdkit 1/3] server: Disallow password=- from non-tty and fix error message (RHBZ#1842440).
...ading password"); + if (read_password_interactive (password) == -1) return -1; - } - - printf ("password: "); - - /* Set no echo. */ - tty = isatty (0); - if (tty) { - tcgetattr (0, &orig); - temp = orig; - temp.c_lflag &= ~ECHO; - tcsetattr (0, TCSAFLUSH, &temp); - } - - r = getline (password, &n, stdin); - err = errno; - - /* Restore echo. */ - if (tty) - tcsetattr (0, TCSAFLUSH, &orig); - - /* Complete the printf above. */ - printf ("\n"); - - if (r == -1) { - errno = err; -...
1999 Oct 20
2
Samba - Unix password sync
Hi, in the last weeks I've unsuccessfully tried to get Samba (2.0.5a) - Unix (Suse 6.2) password sync working. Maybe somebody can give me a hint, what's wrong. Enclosed you'll find additional information. Thank you for helping, Johannes -------- smb.conf: passwd chat = *password* %n\n *password* %n\n *Password* -------- password chat (manually): homer:~ # /bin/passwd web New
2008 Jan 16
8
PATCH [xenconsoled]: makes pty slave raw early
Hi, on my system (Linux 2.6.18.8 - ia64), if a domain write on the xencons before xenconsole is initialized the domain gets back what it wrote. This patch fixes this issue by making raw the pty slave very early. (I suppose it doesn''t happen with linux as a guest because it takes a little bit of time before writing to xencons). Tristan. _______________________________________________
2019 Jan 25
0
[klibc:update-dash] input: Remove HETIO
...- struct history *p; - struct history *n; -}; - - -void input_delete (int); -void input_home (int *); -void input_end (int *, int); -void input_backspace (int *, int *); - - - -void hetio_init(void) -{ - hetio_inter = 1; -} - - -void hetio_reset_term(void) -{ - if (reset_term) - tcsetattr(1, TCSANOW, &old_term); -} - - -void setIO(struct termios *new, struct termios *old) /* Set terminal IO to canonical mode, and save old term settings. */ -{ - tcgetattr(0, old); - memcpy(new, old, sizeof(*new)); - new->c_cc[VMIN] = 1; - new->c_cc[VTIME] = 0; - new->c_lflag &= ~ICAN...
2020 Mar 28
0
[klibc:update-dash] dash: input: Remove HETIO
...- struct history *p; - struct history *n; -}; - - -void input_delete (int); -void input_home (int *); -void input_end (int *, int); -void input_backspace (int *, int *); - - - -void hetio_init(void) -{ - hetio_inter = 1; -} - - -void hetio_reset_term(void) -{ - if (reset_term) - tcsetattr(1, TCSANOW, &old_term); -} - - -void setIO(struct termios *new, struct termios *old) /* Set terminal IO to canonical mode, and save old term settings. */ -{ - tcgetattr(0, old); - memcpy(new, old, sizeof(*new)); - new->c_cc[VMIN] = 1; - new->c_cc[VTIME] = 0; - new->c_lflag &= ~ICAN...
2020 Jun 01
7
server: Fix reading passwords interactively.
https://bugzilla.redhat.com/show_bug.cgi?id=1842440 Patches 1 and 2 address fairly obvious bugs in how we handle reading passwords from stdin. There are other ways we may consider fixing these bugs: - Should password=- always open /dev/tty and ignore stdin entirely? - Should we make password=-0/-1/-2 work by skipping the close? Or perhaps reopen the file descriptors on /dev/null after
2002 Jun 21
4
[Bug 282] ttymodes sent can be invalid
http://bugzilla.mindrot.org/show_bug.cgi?id=282 ------- Additional Comments From stevesk at pobox.com 2002-06-22 06:15 ------- what kernel and glibc version? try with "stty -parenb" on client side. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
2012 May 21
1
[nut-commits] svn commit r3603 - trunk/drivers
On May 16, 2012, at 10:10 AM, Arnaud Quette wrote: > Author: aquette > Date: Wed May 16 14:10:40 2012 > New Revision: 3603 > URL: http://trac.networkupstools.org/projects/nut/changeset/3603 > > Log: > Final fix to the tcsetattr() / tcgetattr() issue I propose reverting this commit for now, until we work in all of the autoconf magic to detect whether the various termio bits are present in the header files. (It failed to build on AIX, Solaris sparc+intel, and HPUX.) -- Charles Lepple clepple at gmail
2008 Mar 26
3
[PATCH][TOOLS] pygrub: cleanup and support for NetBSD
Hi Keir, Attached patch gets rid of the global attr variable and adds support for NetBSD. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com> -- AMD Saxony, Dresden, Germany Operating System Research Center Legal Information: AMD Saxony Limited Liability Company & Co. KG Sitz (Geschäftsanschrift): Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland Registergericht
2011 Apr 13
1
Fwd: Re: Asterisk as a Condo door opener/intercom
...((fd = open(SWDEV, O_RDWR | O_NDELAY))< 0) { fprintf(stderr, "lpswtich: %s: %d\n", SWDEV, strerror(errno)); exit(1);} cfmakeraw(&port_config ); port_config.c_iflag=port_config.c_iflag|IXON; port_config.c_oflag=port_config.c_oflag|CLOCAL|~CRTSCTS; tcsetattr( fd, TCSANOW,&port_config ); ioctl(fd, TIOCMSET,&set_bits ); /* wait for printer to warm up */ sleep(45); /* not say "ready" and release the printer */ set_bits = 6; cfmakeraw(&port_config ); port_config.c_iflag=port_config.c_iflag|IXON;...
2002 May 09
4
make distprep broken?
Hello All, Doing a make distprep doesn't seem to work anymore: $ make -f Makefile.in distprep make: @SH@: Command not found make: *** [catman-do] Error 127 I've seen this on AIX & Redhat (gnu make) and Solaris (native make). I suspect this occurs on most platforms. Is this still the recommended way of autoreconf'ing CVS releases for building? -Daz.
2004 Nov 22
1
patch to fix non-echo tty on scp SIGINT
...program */ pid_t do_cmd_pid = -1; +/* Save terminal state for restore on exit */ +static struct termios _saved_tio; + static void killchild(int signo) { if (do_cmd_pid > 1) kill(do_cmd_pid, signo); + /* restore the terminal to its original state */ + if (tcsetattr(fileno(stdin), TCSADRAIN, &_saved_tio) == -1) + perror("tcsetattr"); + _exit(1); } @@ -218,6 +225,11 @@ extern char *optarg; extern int optind; + if (tcgetattr(fileno(stdin), &_saved_tio) == -1) { + perror("tcgetatt...
2017 Oct 13
4
Why dup()?
On 12/10/17 12:54, Clark Wang wrote: > How did you hit the problem? "ssh host echo hello | cat" works fine > for me. That's because ssh exited, not because of EOF. Consider the following: ?? ssh localhost 'exec cat > /dev/null' | { read l; echo ${l:-EOF}; } One should see "EOF" immediately (for values of immediate that include startup latency), but
2012 Apr 17
4
top not restoring terminal echo/icanon correctly
...was previously busted in this way), but now -a behaves like -b did. So src/world date matters. All of this is documented in PR 161739. I urge anyone experiencing this problem to read that PR in full, as I spent many hours today writing a debug routine to confirm that top is sometimes not calling tcsetattr() with the original terminal parameters when it exits, and what the condition seems to be. http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/161739 Finally, if anyone want to tackle the problem (work out the logic bug that is in there which causes it), please be my guest. I have other things going...
2005 Sep 29
1
smb_panic after upgrading
...+0x115) [0x5c75a6] #8 /usr/sbin/smbd [0x5d4654] #9 /usr/sbin/smbd(nt_printing_init+0x3cd) [0x5d4cad] #10 /usr/sbin/smbd(print_backend_init+0x182) [0x5ce7eb] #11 /usr/sbin/smbd(main+0x536) [0x631ad7] #12 /lib64/tls/libc.so.6(__libc_start_main+0xfd) [0x2a96b69acd] #13 /usr/sbin/smbd(tcsetattr+0xaa) [0x44141a] [2005/09/29 13:17:22, 0] smbd/server.c:main(802) smbd version 3.0.20-0.1-SUSE started. Copyright Andrew Tridgell and the Samba Team 1992-2004 [2005/09/29 13:17:22, 0] printing/nt_printing.c:upgrade_to_version_4(438) upgrade_to_version_4: upgrading printer security descriptors...
2020 Jun 01
3
[PATCH v2v 0/2] v2v: nbdkit: Don't use password=- parameter.
Part 2 fix for: https://bugzilla.redhat.com/show_bug.cgi?id=1842440 Actually this fix on its own should be sufficient, but probably we want the nbdkit fixes too. Note this uses actual OCaml 4.05 features! ("let open" and the Unix.tcgetattr functions). I checked that both features are available on RHEL 7's OCaml. Rich.