maint: simplify handling of backup --suffix in various tools
commitec946718ae7c329ba4d4ef46a467bba125c141a6
authorRishabh Dave <rishabhddave@gmail.com>
Wed, 2 Nov 2016 23:43:47 +0000 (2 23:43 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 7 Nov 2016 17:09:35 +0000 (7 17:09 +0000)
tree5c7042af93646e96d5ccdd5cdde6a62b51800124
parent30012b290facf66551cdf395ace397903d00483d
maint: simplify handling of backup --suffix in various tools

* src/cp.c (main): Avoid the getenv("SIMPLE_BACKUP_SUFFIX") call,
which is now done if needed in the gnulib backupfile module.
Also avoid the redundant strdup, as we don't modify this suffix.
* src/install.c (main): Likewise.
* src/ln.c (main): Likewise.
* src/mv.c (main): Likewise.
Fixes http://bugs.gnu.org/23153
src/cp.c
src/install.c
src/ln.c
src/mv.c