Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Sep 2018 19:41:31 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 228448] [PATCH] `unlink -foo` , the original use of `unlink`, no longer works.
Message-ID:  <bug-228448-227-mcCnas8poW@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-228448-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-228448-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D228448

--- Comment #2 from commit-hook@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@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

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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-228448-227-mcCnas8poW>