1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00
freebsd/bin/rm
Ed Maste 19b4f0dca0 Fix unlink(1) for files starting with -
Restore the original behavior of unlink(1), passing the provided filename
directly to unlink(2), handling the first argument being "--" correctly.

This fixes "unlink -foo", broken in r97533.

PR:		228448
Submitted by:	Brennan Vincent <brennan@umanwizard.com> (original version)
Submitted by:	Yuri Pankov
Reported by:	Brennan Vincent <brennan@umanwizard.com>
Reviewed by:	emaste, kevans, vangyzen, 0mp
Approved by:	re (delphij)
Differential Revision: https://reviews.freebsd.org/D17132
2018-09-12 19:41:16 +00:00
..
tests Fix unlink(1) for files starting with - 2018-09-12 19:41:16 +00:00
Makefile Fix unlink(1) for files starting with - 2018-09-12 19:41:16 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
rm.1 Fix unlink(1) for files starting with - 2018-09-12 19:41:16 +00:00
rm.c Fix unlink(1) for files starting with - 2018-09-12 19:41:16 +00:00