xargs: make -I imply -r
authorAaro Koskinen <aaro.koskinen@iki.fi>
Sat, 24 Oct 2015 20:01:29 +0000 (22:01 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 24 Oct 2015 20:01:29 +0000 (22:01 +0200)
commit6d777b75ed322ea5ef0d1674ddfee1b5713cb04f
tree98261f2e1093b22a80d52a30a0bf34afef40e0a1
parentf98705a00c15fc029116e00507abcfb745b86bfa
xargs: make -I imply -r

Make -I imply -r (GNU findutils seems to do the same).

Fixes the following bug:

        $ echo -n | xargs -I% echo %
        Segmentation fault

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
findutils/xargs.c