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
--- a/util-linu
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, loop
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 a/libb
Step 1 of micro-refactoring the set_loop():
Extract subfunction open_file() from set_loop()
function old new delta
set_loop 760 758 -2
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.
https://lw
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
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
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
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
Step 5 of micro-refactoring the set_loop():
Extract subfunction set_loop_configure()
function old new delta
set_loop 700 708 +8
---
Step 7 of micro-refactoring the set_loop():
Extract subfunction do_stat_and_mknod()
function old new delta
set_loop 720 700 -20
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.
https://lw
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 b/log
13 matches
Mail list logo