Skip to content

Fix proc parsing in newuname01

Cyril Hrubis ltp 2 versions – Applied

Status from this message: Merged, Thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 5 repliesApplied
  2. v12 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- added returns to safe_file_read_str()
- fixed typo in doc comment

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2lib: safe_file_ops: Add SAFE_FILE_READ_STR()include/tst_safe_file_ops.h lib/safe_file_ops.c+47 -03 replies
2/2syscalls: newuname01: Fix fail on empty domainnametestcases/kernel/syscalls/newuname/newuname01.c+4 -41 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchAndrea Cervesato
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [LTP] [PATCH v2 0/2] Fix proc parsing in newuname01

Turns out some of the strings in procfs can be empty (file with just a newline) and in such case scanf("%s", ...) fails to read the file while what we needed instead is a function that would produce an empty string. This patchset addds such function and makes use of it in the newuname01 test.

v2:
- added returns to safe_file_read_str()
- fixed typo in doc comment

Cyril Hrubis (2):
lib: safe_file_ops: Add SAFE_FILE_READ_STR()
syscalls: newuname01: Fix fail on empty domainname

 include/tst_safe_file_ops.h                   | 21 +++++++++++++++
 lib/safe_file_ops.c                           | 26 +++++++++++++++++++
 .../kernel/syscalls/newuname/newuname01.c     |  8 +++---
 3 files changed, 51 insertions(+), 4 deletions(-)
Signature · 5 lines
2.53.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp