Skip to contentSkip to conversation

landlock.7: printf.h.3head: ffix

PATCH In review Tom Schwindl 2 participants 2 messages Mar 8, 2023 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 landlock.7: printf.h.3head: ffix

---
 man3head/printf.h.3head | 6 +++---
 man7/landlock.7         | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)
man3head/printf.h.3head +3 -3
index af743623ba8b..8f1aa6a37e09 100644
@@ -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
index b2bc9e10b0c0..bbe00d4c2793 100644
@@ -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
#1 lore raw

Hi Tom,

Quoted 1 line · Tom Schwindl

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
index af743623ba8b..8f1aa6a37e09 100644
@@ -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
index b2bc9e10b0c0..bbe00d4c2793 100644
@@ -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