Re: patches
:http://virtus.ath.cx/dfbsd/rmdir.c.diff
:Changes:
:* Right now rmdir doesn't work correctly with the -p option, this fixes it
:because it doesn't error out at the first failure but sees if it has empty
:subdirs first, so it can recursively remove all dirs
:
:That's all for now... I hope anyone has time to commit this, they're all
:pretty trivial changes.
:
:Later,
:Douwe
This patch seems to break rmdir rather then fix it. You removed the
initial rmdir(*argv) call which prevents the last component from
being removed. The rm_path() call then fails trying to remove
the other components.
-Matt
Matthew Dillon
<dillon@backplane.com>
討論串 (同標題文章)
完整討論串 (本文為第 3 之 3 篇):