]> git.ipfire.org Git - thirdparty/util-linux.git/commit
rename: use strrchr() instead of rindex()
authorSami Kerola <kerolasa@iki.fi>
Sun, 8 Feb 2015 20:44:40 +0000 (20:44 +0000)
committerKarel Zak <kzak@redhat.com>
Tue, 10 Feb 2015 12:21:23 +0000 (13:21 +0100)
commit2fc5a0d5bc3609d69863ba45de850e659d5e60f6
tree1878abd69ea1012c210f3e5d87121627d0cb3124
parent4863ddaddf6ca5b21c1041b8c875b7211f4ac4e9
rename: use strrchr() instead of rindex()

The rindex() is marked legacy in POSIX.1-2001, and apparently Androids
bionic libc does not even have it so it is best not to use the legacy
interface.

Reference: https://lists.gnu.org/archive/html/weechat-dev/2014-02/msg00004.html
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
misc-utils/rename.c