udhcpc6 kernel listen mode is broken

2022-05-10 Thread Danomi Manchego
Hello, On April 1, I sent "udhcpc6 renew message copy/paste error" email about udhcpc6 sends the wrong message ID for Renew message due to copy/paste error from IPv4 dhcpc.c. (Was DHCPREQUEST, should be D6_MSG_RENEW.) After fixing that, I found that the Renew is sent correctly, and the DHCPv6 se

[PATCH v6 2/2] less: replace most uses of NORMAL escape with UNHIGHLIGHT

2022-05-10 Thread FriendlyNeighborhoodShane
Emmitting NORMAL resets the entire SGR state of the terminal, which includes colors. We don't want that now, since those sequences can come between a colored line, and this would cut the coloring short. UNHIGHLIGHT is a dedicated code to just flip the HIGHLIGHT (invert) bit to off, and is a better

[PATCH v6 1/2] less: fully implement -R and print color escapes

2022-05-10 Thread FriendlyNeighborhoodShane
The earlier implementation used to just strip color escapes. This makes them output 'raw', coloring the screen. Like less, it assumes that the codes don't move the cursor. Emits NORMAL at newlines, like less, to deal with malformed input. count_colctrl() counts the number of chars in the next ANSI

[PATCH v6 0/2] less: fully implement -R

2022-05-10 Thread FriendlyNeighborhoodShane
The switch was half-implemented earlier and it only used to trim escape sequences. This patch series implements the feature fully i.e. makes it emit color (SGR) sequences raw, and fixes other behaviour around it. function old new delta buffer_print

[PATCH v5 2/2] less: replace most uses of NORMAL escape with UNHIGHLIGHT

2022-05-10 Thread FriendlyNeighborhoodShane
Emmitting NORMAL resets the entire SGR state of the terminal, which includes colors. We don't want that now, since those sequences can come between a colored line, and this would cut the coloring short. UNHIGHLIGHT is a dedicated code to just flip the HIGHLIGHT (invert) bit to off, and is a better

[PATCH v5 1/2] less: fully implement -R and print color escapes

2022-05-10 Thread FriendlyNeighborhoodShane
The earlier implementation used to just strip color escapes. This makes them output 'raw', coloring the screen. Like less, it assumes that the codes don't move the cursor. Emits NORMAL at newlines, like less, to deal with malformed input. count_colctrl() counts the number of chars in the next ANSI

[PATCH v5 0/2] less: fully implement -R

2022-05-10 Thread FriendlyNeighborhoodShane
The switch was half-implemented earlier and it only used to trim escape sequences. This patch series implements the feature fully i.e. makes it emit color (SGR) sequences raw, and fixes other behaviour around it. Bloatcheck: function old new delta

Re: [PATCH] su: support numeric UIDs with a -n flag

2022-05-10 Thread Laurent Bercot
You're right. I am a part of a community distro which uses busybox by default, and we need something to be able to change privileges to an arbitrary user, but it is not portable to expect a tool to print all of a username longer than 8 characters. Using the UID is more reliable. There is no standa

[PATCH v4r 2/2] less: replace most uses of NORMAL escape with UNHIGHLIGHT

2022-05-10 Thread FriendlyNeighborhoodShane
Emmitting NORMAL resets the entire SGR state of the terminal, which includes colors. We don't want that now, since those sequences can come between a colored line, and this would cut the coloring short. UNHIGHLIGHT is a dedicated code to just flip the HIGHLIGHT (invert) bit to off, and is a better

[PATCH v4r 1/2] less: fully implement -R and print color escapes

2022-05-10 Thread FriendlyNeighborhoodShane
The earlier implementation used to just strip color escapes. This makes them output 'raw', coloring the screen. Like less, it assumes that the codes don't move the cursor. Emits NORMAL at newlines, like less, to deal with malformed input. count_colctrl() counts the number of chars in the next ANSI

[PATCH v4r 0/2] less: fully implement -R

2022-05-10 Thread FriendlyNeighborhoodShane
Reposting. Added signed-off line. The switch was half-implemented earlier and it only used to trim escape sequences. This patch series implements the feature fully i.e. makes it emit color (SGR) sequences raw, and fixes other behaviour around it. Bloatcheck: function

Re: [PATCH] su: support numeric UIDs with a -n flag

2022-05-10 Thread Ben Fuller
On Tue, May 10, 2022 at 05:06:35PM +0300, Michael Tokarev wrote: > 10.05.2022 16:53, Michael Tokarev wrote: > .. > > Do you really want su there? Maybe setpriv will better suit your needs? > > Grrr, and setpriv in busybox does not support user/group settings at all... ;) Ah, that's why I didn't n

Re: [PATCH] su: support numeric UIDs with a -n flag

2022-05-10 Thread Michael Tokarev
10.05.2022 16:53, Michael Tokarev wrote: .. Do you really want su there? Maybe setpriv will better suit your needs? Grrr, and setpriv in busybox does not support user/group settings at all... ;) Why I asked: it is uncommon for su to accept numeric UIDs, - be it busybox or anything else. Also,

Re: [PATCH] su: support numeric UIDs with a -n flag

2022-05-10 Thread Michael Tokarev
10.05.2022 16:30, Ben Fuller wrote: Signed-off-by: Ben Fuller --- Hi, I want to be able to use UIDs rather than usernames in order to handle cases where some POSIX tools truncate usernames at 8 characters. This patch adds a `-n` flag to su, which causes it to interpret the given USER as a numer