aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorChristian Brauner <[email protected]>2024-06-27 16:11:39 +0200
committerChristian Brauner <[email protected]>2024-06-28 10:36:45 +0200
commitc6269149cbf7053272d918101981869438ff7c1e (patch)
tree56268222b9012639dff71b6a54f5e756a82ed3cc /lib/test_fortify/write_overflow-strncpy-src.c
parentff2c570ef7eaa9ded58e7a02dd7a68874a897508 (diff)
file: add take_fd() cleanup helper
Add a helper that returns the file descriptor and ensures that the old variable contains a negative value. This makes it easy to rely on CLASS(get_unused_fd). Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Jeff Layton <[email protected]> Reviewed-by: Josef Bacik <[email protected]> Reviewed-by: Alexander Mikhalitsyn <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions