landlock.7: printf.h.3head: ffix
PATCH 1/1 landlock.7: printf.h.3head: ffix
Signed-off-by Tom Schwindl <[email protected]>
--- man3head/printf.h.3head | 6 +++--- man7/landlock.7 | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-)
man3head/printf.h.3head +3 -3
@@ -288,9 +288,9 @@ static ssize_t pad_spaces(FILE *stream, size_t pad_len); int main(void) { - if (register_printf_specifier(\[aq]b\[aq], b_printf, b_arginf_sz) == -1) + if (register_printf_specifier(\[aq]b\[aq], b_printf, b_arginf_sz) == \-1) err(EXIT_FAILURE, "register_printf_specifier(\[aq]b\[aq], ...)"); - if (register_printf_specifier(\[aq]B\[aq], b_printf, b_arginf_sz) == -1) + if (register_printf_specifier(\[aq]B\[aq], b_printf, b_arginf_sz) == \-1) err(EXIT_FAILURE, "register_printf_specifier(\[aq]B\[aq], ...)"); printf("....----....----....----....----\en");
@@ -410,7 +410,7 @@ b_arginf_sz(const struct printf_info *info, size_t n, int argtypes[n], [[maybe_unused]] int size[n]) { if (n < 1) - return -1; + return \-1; if (info\->is_long_double) argtypes[0] = PA_INT | PA_FLAG_LONG_LONG;
man7/landlock.7 +2 -2
@@ -245,7 +245,7 @@ attr.handled_access_fs = LANDLOCK_ACCESS_FS_MAKE_SYM; ruleset_fd = landlock_create_ruleset(&attr, sizeof(attr), 0); -if (ruleset_fd == -1) { +if (ruleset_fd == \-1) { perror("Failed to create a ruleset"); exit(EXIT_FAILURE); }
@@ -276,7 +276,7 @@ path_beneath.allowed_access = LANDLOCK_ACCESS_FS_READ_DIR; path_beneath.parent_fd = open("/usr", O_PATH | O_CLOEXEC); -if (path_beneath.parent_fd == -1) { +if (path_beneath.parent_fd == \-1) { perror("Failed to open file"); close(ruleset_fd); exit(EXIT_FAILURE);
Signature · 1 line
2.39.2
Hi Tom,
Quoted 1 line · Tom Schwindl
Signed-off-by Tom Schwindl <[email protected]>
Patch applied.
Thanks,
Alex
Quoted 52 lines
--- man3head/printf.h.3head | 6 +++--- man7/landlock.7 | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-)man3head/printf.h.3head +3
-3@@ -288,9 +288,9 @@ static ssize_t pad_spaces(FILE *stream, size_t pad_len); int main(void) { - if (register_printf_specifier(\[aq]b\[aq], b_printf, b_arginf_sz) == -1) + if (register_printf_specifier(\[aq]b\[aq], b_printf, b_arginf_sz) == \-1) err(EXIT_FAILURE, "register_printf_specifier(\[aq]b\[aq], ...)"); - if (register_printf_specifier(\[aq]B\[aq], b_printf, b_arginf_sz) == -1) + if (register_printf_specifier(\[aq]B\[aq], b_printf, b_arginf_sz) == \-1) err(EXIT_FAILURE, "register_printf_specifier(\[aq]B\[aq], ...)"); printf("....----....----....----....----\en");@@ -410,7 +410,7 @@ b_arginf_sz(const struct printf_info *info, size_t n, int argtypes[n], [[maybe_unused]] int size[n]) { if (n < 1) - return -1; + return \-1; if (info\->is_long_double) argtypes[0] = PA_INT | PA_FLAG_LONG_LONG;man7/landlock.7 +2
-2@@ -245,7 +245,7 @@ attr.handled_access_fs = LANDLOCK_ACCESS_FS_MAKE_SYM; ruleset_fd = landlock_create_ruleset(&attr, sizeof(attr), 0); -if (ruleset_fd == -1) { +if (ruleset_fd == \-1) { perror("Failed to create a ruleset"); exit(EXIT_FAILURE); }@@ -276,7 +276,7 @@ path_beneath.allowed_access = LANDLOCK_ACCESS_FS_READ_DIR; path_beneath.parent_fd = open("/usr", O_PATH | O_CLOEXEC); -if (path_beneath.parent_fd == -1) { +if (path_beneath.parent_fd == \-1) { perror("Failed to open file"); close(ruleset_fd); exit(EXIT_FAILURE);
Signature · 2 lines
<http://www.alejandro-colomar.es/> GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5