[Bug 228448] [PATCH] `unlink -foo` , the original use of `unlink`, no longer works.

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Sep 12 19:41:33 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228448

--- Comment #2 from commit-hook at freebsd.org ---
A commit references this bug:

Author: emaste
Date: Wed Sep 12 19:41:17 UTC 2018
New revision: 338620
URL: https://svnweb.freebsd.org/changeset/base/338620

Log:
  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 at umanwizard.com> (original version)
  Submitted by: Yuri Pankov
  Reported by:  Brennan Vincent <brennan at umanwizard.com>
  Reviewed by:  emaste, kevans, vangyzen, 0mp
  Approved by:  re (delphij)
  Differential Revision: https://reviews.freebsd.org/D17132

Changes:
  head/bin/rm/Makefile
  head/bin/rm/rm.1
  head/bin/rm/rm.c
  head/bin/rm/tests/
  head/bin/rm/tests/Makefile
  head/bin/rm/tests/Makefile.depend
  head/bin/rm/tests/rm_test.sh
  head/etc/mtree/BSD.tests.dist

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list