[PATCH] more: accept and ignore -e

2022-11-21 Thread Natanael Copa
Accept and ignore -e which is specified in POSIX. https://pubs.opengroup.org/onlinepubs/9699919799/utilities/more.html --- util-linux/more.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util-linux/more.c b/util-linux/more.c index eea69da06..a830dcbc1 100644 ---

[PATCH v4 4/9] loop:refactor: extract subfunction set_loop_info()

2022-11-21 Thread Xiaoming Ni
Step 4 of micro-refactoring the set_loop(): Extract subfunction set_loop_info() from set_loop() function old new delta set_loop 734 700 -34

[PATCH v4 8/9] loop:refactor: extract subfunction set_loop_dev()

2022-11-21 Thread Xiaoming Ni
Step 8 of micro-refactoring the set_loop(): Extract subfunction open_file() from set_loop_dev() function old new delta set_loop 700 716 +16

[PATCH v4 0/9] loop: Micro-refactoring set_loop() and add LOOP_CONFIGURE

2022-11-21 Thread Xiaoming Ni
LOOP_CONFIGURE is added to Linux 5.8 This allows userspace to completely setup a loop device with a single ioctl, removing the in-between state where the device can be partially configured - eg the loop device has a backing file associated with it, but is reading from the wrong offset.

[PATCH v4 1/9] loop:refactor: extract subfunction open_file()

2022-11-21 Thread Xiaoming Ni
Step 1 of micro-refactoring the set_loop(): Extract subfunction open_file() from set_loop() function old new delta set_loop 760 758 -2

Re: [PATCH v2 2/9] loop:refactor: extract subfunction get_next_free_loop()

2022-11-21 Thread Xiaoming Ni
On 2022/11/21 15:50, Kang-Che Sung wrote: On Mon, Nov 21, 2022 at 9:19 AM Xiaoming Ni wrote: static int get_next_free_loop(char *dev, size_t dev_size, int id) { int loopdevno = get_free_loop(); if (loopdevno >= 0) { snprintf(dev, dev_size, LOOP_FORMAT,

[PATCH v4 2/9] loop:refactor: extract subfunction get_next_free_loop()

2022-11-21 Thread Xiaoming Ni
Step 2 of micro-refactoring the set_loop function () Extract subfunction get_next_free_loop() from set_loop() Also fix miss free(try) when stat(try) and mknod fail function old new delta set_loop

[PATCH v4 6/9] loop:refactor: Use a structure to reduce parameters

2022-11-21 Thread Xiaoming Ni
Step 6 of micro-refactoring the set_loop(): Use structs to avoid transferring a large number of parameters in set_loop_configure() and set_loop_info() function old new delta set_loop 708

[PATCH v4 5/9] loop:refactor: extract subfunction set_loop_configure()

2022-11-21 Thread Xiaoming Ni
Step 5 of micro-refactoring the set_loop(): Extract subfunction set_loop_configure() function old new delta set_loop 700 708 +8

[PATCH v4 3/9] loop:refactor: del close_and_try_next_loopN

2022-11-21 Thread Xiaoming Ni
Step 3 of micro-refactoring the set_loop() function: Delete close_and_try_next_loopN. (add/remove: 0/0 grow/shrink: 0/0 up/down: 0/0) Total: 0 bytes Signed-off-by: Xiaoming Ni --- libbb/loop.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH v4 7/9] loop:refactor: Extract subfunction do_stat_and_mknod()

2022-11-21 Thread Xiaoming Ni
Step 7 of micro-refactoring the set_loop(): Extract subfunction do_stat_and_mknod() function old new delta set_loop 720 700 -20

[PATCH v4 9/9] loop: Add LOOP_CONFIGURE ioctl

2022-11-21 Thread Xiaoming Ni
LOOP_CONFIGURE is added to Linux 5.8 This allows userspace to completely setup a loop device with a single ioctl, removing the in-between state where the device can be partially configured - eg the loop device has a backing file associated with it, but is reading from the wrong offset.

[PATCH] getty: prevent getty from changing tty lines protections and ownership

2022-11-21 Thread bboubaker
There are dedicated linux sub-systems such as udev/mdev to handle tty lines ownership and permissions getty should be only capable of using it and not do an override. Signed-off-by: bboubaker --- loginutils/getty.c | 4 1 file changed, 4 deletions(-) diff --git a/loginutils/getty.c