copy-blockdev: Modify to use %m format instead of strerror 11/314711/1 accepted/tizen/unified/20240719.080556 accepted/tizen/unified/dev/20240722.073436 accepted/tizen/unified/x/20240719.092008 accepted/tizen/unified/x/20240719.131400
authorSangYoun Kwak <sy.kwak@samsung.com>
Thu, 18 Jul 2024 04:06:20 +0000 (13:06 +0900)
committerSangYoun Kwak <sy.kwak@samsung.com>
Thu, 18 Jul 2024 04:06:20 +0000 (13:06 +0900)
commit8ec44767170f614bd52470bb1b3b6155d7458900
tree6558098ef9b874cf33a7829dcf38eec91303abcc
parent210f7a10b8c8623819f6217339048a2cd4d27ea0
copy-blockdev: Modify to use %m format instead of strerror

strerror() is not guaranteed as thread-safe. To solve this issue, errno
is set as the return value of posix_fadvise and print it with "%m"
format if it is not zero.

This will solve SVACE issue with WGID 226619.

Change-Id: I53aa630c50ba31ed925acff0a57414b972e1a25b
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
src/copy-blockdev/lib.c