Date: Mon, 15 Jan 2018 19:31:58 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 224556] pw(8) does not check semantics of name Message-ID: <bug-224556-8-kc6AWpHPBE@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-224556-8@https.bugs.freebsd.org/bugzilla/> References: <bug-224556-8@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=3D224556 Eugene Grosbein <eugen@freebsd.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|In Progress |Open Assignee|freebsd-bugs@FreeBSD.org |eugen@freebsd.org CC| |eugen@freebsd.org --- Comment #4 from Eugene Grosbein <eugen@freebsd.org> --- In fact, pw(8) already has needed checks and does not harm. First, "/path/to/dir/." is completely correct directory name and the same as "/path/to/dir" itself and "pw userdel username -r" removes it if its owner = is user being removed only. Second, "/path/to/dir/.." may look funny but it is correct directory name t= oo and the same as "/path/to" and "pw userdel username -r" removes it if its o= wner is user being removed only. What is the problem is exactly? If you believe that pw(8) does "rm -rf" for file system objects not checking their ownership, you are wrong. --=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-224556-8-kc6AWpHPBE>