[Bug 228448] [PATCH] `unlink -foo` , the original use of `unlink`, no longer works.
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed May 23 23:51:00 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228448
Bug ID: 228448
Summary: [PATCH] `unlink -foo` , the original use of `unlink`,
no longer works.
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bugs at FreeBSD.org
Reporter: brennan at umanwizard.com
Created attachment 193640
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=193640&action=edit
patch fixing the issue
`unlink -foo` fails, instead of removing a file named `-foo`.
The intended behavior of unlink(1) is to remove the file, as can be seen here,
when it was added back in 1999:
https://svnweb.freebsd.org/base/head/bin/rm/rm.c?r1=53819&r2=54895
Also, this matches POSIX: https://www.unix.com/man-page/posix/1P/unlink/
Patch attached to re-enable the old behavior and also update the documentation.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list