Displaying 20 results from an estimated 1000 matches similar to: "[klibc:master] isatty(): use TCGETS instead of TIOCGPGRP, like dietlibc does"
2014 Jun 11
2
[PATCH] isatty(): use TCGETS instead of TIOCGPGRP, like dietlibc does
While all ?real? ttys may support TIOCGPGRP, /dev/console doesn?t;
using TCGETS here allows Linux booted with init=/bin/mksh-static
to have working interactive command line (PS1, editing, etc).
Reported-by: Dominik George <d.george at tarent.de>
Signed-off-by: Thorsten Glaser <t.glaser at tarent.de>
---
usr/klibc/isatty.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
2014 Jun 11
0
[PATCH] isatty(): use TCGETS instead of TIOCGPGRP, like dietlibc does
On 06/11/2014 01:02 AM, Thorsten Glaser wrote:
> While all ?real? ttys may support TIOCGPGRP, /dev/console doesn?t;
> using TCGETS here allows Linux booted with init=/bin/mksh-static
> to have working interactive command line (PS1, editing, etc).
>
> Reported-by: Dominik George <d.george at tarent.de>
> Signed-off-by: Thorsten Glaser <t.glaser at tarent.de>
> ---
2014 Jun 12
0
[PATCH] isatty(): use TCGETS instead of TIOCGPGRP, like dietlibc does
Maciej ?enczykowski dixit:
>I guess what I wanted to say is that it might be desirable to have the
>klibc shell do some dancing (perhaps controlled by some flags, but on
There is no klibc shell.
>child should
>
>setsid()
>close(2)
>close(1)
>close(0)
>open("/dev/ttyS0", O_RDONLY)
>open("/dev/ttyS0", O_WRONLY|O_NOCTTY)
2014 Jun 11
3
[PATCH] isatty(): use TCGETS instead of TIOCGPGRP, like dietlibc does
H. Peter Anvin dixit:
>But is that really a tty, then? I also understand that virtio console
Hm. Both eglibc and dietlibc return true for isatty on it.
>doesn't support termios, which makes this an ugly bifurcation. All of
Let me test that? quick? hah not really (CONFIG_VIRTIO_CONSOLE=m)?
ok luckily Ubuntu?s linux-image-3.15.0-5-generic is installable on
Debian stable and has
2014 Jun 11
2
[PATCH] isatty(): use TCGETS instead of TIOCGPGRP, like dietlibc does
I guess what I wanted to say is that it might be desirable to have the
klibc shell do some dancing (perhaps controlled by some flags, but on
by default?)
If getpid() == 1 then fork a child, continue in the child, have the
parent wait for the child to terminate, then exit
child should
setsid()
close(2)
close(1)
close(0)
open("/dev/ttyS0", O_RDONLY)
open("/dev/ttyS0",
2014 Jun 11
0
[PATCH] isatty(): use TCGETS instead of TIOCGPGRP, like dietlibc does
Does ctrl+c work?
My experience with (non klibc) init=/bin/bash is that getting ctrl+c
to work requires some jumping through hoops, because running as pid 1
doesn't really work.
If I recall correctly you have to call setsid, and open a tty as a
controlling tty, you can't call setsid as pid 1.
The hack that I got to work (for reference, I'm using this for raw
kernel testing
2014 Nov 25
3
[PATCH] mllib: use Unix.isatty
Make use of Unix.isatty instead of our TTY.isatty_stdout, as the
supported OCaml provides the former already.
---
mllib/common_utils.ml | 10 +++++-----
mllib/progress.ml | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/mllib/common_utils.ml b/mllib/common_utils.ml
index 295981c..9fcd8dd 100644
--- a/mllib/common_utils.ml
+++ b/mllib/common_utils.ml
@@ -207,15 +207,15
2023 May 28
1
command [argument ...] in ssh(1): a footgun
On Sat, May 27, 2023 at 02:45:34AM +0200, Thorsten Glaser <t.glaser at tarent.de> wrote:
> On Sat, 27 May 2023, raf wrote:
>
> >So, perhaps this could be added to the existing
> >sentence/paragraph:
> >
> > "so any spaces in individual arguments must be
>
> Must they? No, a single space will do just fine.
They do if you want the receiving shell
2023 May 27
2
command [argument ...] in ssh(1): a footgun
On Sat, May 27, 2023 at 12:08:43AM +0200, Thorsten Glaser <t.glaser at tarent.de> wrote:
> On Fri, 26 May 2023, Mingye Wang (Artoria2e5) wrote:
>
> > ssh(1) currently affords an argument-passing functionality, but as the manpage
> > states, all arguments are simply concatenated by space.
>
> How else would it do that? The arguments are processed by the
> shell
2003 Aug 05
1
compile with dietlibc
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
I'm used to test the software which I use with dietlibc, just to see if it
could run without the bloat of glibc.
While compiling dovecot 0.99.10 I got these errors:
In file included from lib.h:20,
from alarm-hup.c:26:
compat.h:30: conflicting types for `uint_fast32_t'
/opt/diet/include/stdint.h:25: previous
2023 Feb 28
1
ssh host keys on cloned virtual machines
On Sun, Feb 26, 2023 at 2:51?PM Thorsten Glaser <t.glaser at tarent.de> wrote:
>
> On Fri, 24 Feb 2023, Keine Eile wrote:
>
> > does any one of you have a best practice on renewing ssh host keys on cloned
> > machines?
>
> Yes: not cloning machines.
Good luck with *that*. Building VM's from media is a far, far too
lengthy process for production deployment,
2020 Aug 03
6
Deprecation of scp protocol and improving sftp client
I hear you - but it seems that the choice is between (a) limiting "scp" functionality to address the security vulnerability, and (b) killing "scp" altogether.
I'd much prefer (a), even if it means I lose "scp remotehost:foo\* .".
Especially, since (almost always) I have equal privileges on both local and remote hosts, so in that case I just originate that
2014 Dec 03
0
vesamenu back to text before booting
Ah, depends on the image type. We spoke reset for an NBP though.
On December 3, 2014 12:50:24 AM PST, Thorsten Glaser <t.glaser at tarent.de> wrote:
>On Tue, 2 Dec 2014, H. Peter Anvin wrote:
>
>> This is the default unless the "quiet" option is set.
>
>Hmm.
>
>tglaser at luna:/srv/tftp $ fgrep -ri quiet .
>Binary file ./hdt.c32 matches
>Binary file
2007 Jan 05
0
troubles with telnet sessions under Solaris8 as AD member with winbind V3.0.23d
Hi guys,
I've a problem with telnet sessions under Solaris 8 with samba 3.0.23d
winbind.
If I have the winbind authorization active for telnet in my pam.conf I got
a kick out of the system after exactly 300 sec, no mather if I do or do
not activity on the telnet session. The same behavior is for AD and for
local users.
I've trussed a telnet session a the only thing I see is that my
2014 Dec 03
0
vesamenu back to text before booting
On Dec 3, 2014 3:54 AM, "Thorsten Glaser" <t.glaser at tarent.de> wrote:
>
> On Tue, 2 Dec 2014, H. Peter Anvin wrote:
>
> > This is the default unless the "quiet" option is set.
>
> Hmm.
> It does not switch back to text mode when chaining to
> https://www.mirbsd.org/MirOS/current/i386/boot renamed
> to "pxebsd.0" (used to be
2020 Aug 03
6
Deprecation of scp protocol and improving sftp client
I conjecture that only few of the existing use cases rely on remote expansion.
In any case (no pun intended), IMHO it would be better to break a few of the current use cases but leave the majority functional - than kill scp for all.
Regards,
Uri
> On Aug 3, 2020, at 02:50, Jakub Jelen <jjelen at redhat.com> wrote:
>
> ?On Sat, 2020-08-01 at 00:17 +0000, Blumenthal, Uri - 0553
2003 Jan 27
0
[Bug 477] New: progressmeter.c problem requires openbsd-compat/bsd-cray.h change
http://bugzilla.mindrot.org/show_bug.cgi?id=477
Summary: progressmeter.c problem requires openbsd-compat/bsd-
cray.h change
Product: Portable OpenSSH
Version: 3.5p1
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: Build system
AssignedTo:
2014 Dec 05
0
vesamenu back to text before booting
On Thu, Dec 4, 2014 at 11:27 AM, Thorsten Glaser <t.glaser at tarent.de> wrote:
> On Thu, 4 Dec 2014, Gene Cumm wrote:
>
>> Ady has an excellent point. Try the following instead:
>>
>> LABEL test
>> MENU LABEL test
>> COM32 pxechn.c32
>> APPEND pxebsd.0
>
> Thanks, that works! How do I use that in the generic case?
> The
2020 Aug 01
2
Deprecation of scp protocol and improving sftp client
Why can the local and remote paths be sanitized?
Regards,
Uri
> On Jul 31, 2020, at 19:57, Ethan Rahn <ethan.rahn at gmail.com> wrote:
>
> ?I wanted to bring this up again due to:
> https://github.com/cpandya2909/CVE-2020-15778/. This showcases a clear
> issue with scp which it sounds like cannot be fixed without breaking scp.
> This seems like it would lend some impetus
2000 Dec 05
1
Bugreport: openssh-2.3.0p1 scp to SSH2 (2.0.13) server
Hi,
this is a type 3 bugreport ;)
( 3. Repeatable problems specific to your software layout.)
first of all i must state, that i run openssh on a fairly
old redhat based system (redhat 6.1).
if you have any further questions, feel free to contact me.
configure options:
CFLAGS="-O2 -m486" ./configure --without-rsh --with-tcp-wrappers --prefix=/opt/openssh-2.3.0