Date: Wed, 23 May 2018 23:50:57 +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@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D228448 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@FreeBSD.org Reporter: brennan@umanwizard.com Created attachment 193640 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D193640&action= =3Dedit 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 he= re, when it was added back in 1999: https://svnweb.freebsd.org/base/head/bin/rm/rm.c?r1=3D53819&r2=3D54895 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 documentat= ion. --=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>