summaryrefslogtreecommitdiffstats
path: root/scripts/dummy-tools
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2021-05-18 03:56:38 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2021-05-19 02:08:11 +0200
commita0378fb9b33308fb4547f098c6281af8ab4b5fb5 (patch)
treeb5a1e15beeca7bf972dcbdadab5782c3df11f896 /scripts/dummy-tools
parentd_path: get rid of path_with_deleted() (diff)
downloadlinux-a0378fb9b33308fb4547f098c6281af8ab4b5fb5.tar.xz
linux-a0378fb9b33308fb4547f098c6281af8ab4b5fb5.zip
getcwd(2): saner logics around prepend_path() call
The only negative value that might get returned by prepend_path() is -ENAMETOOLONG, and that happens only on overflow. The same goes for prepend_unreachable(). Overflow is detectable by observing negative buflen, so we can simplify the control flow around the prepend_path() call. Expand prepend_unreachable(), while we are at it - that's the only caller. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'scripts/dummy-tools')
0 files changed, 0 insertions, 0 deletions