Date: Tue, 12 Apr 2005 12:14:12 -1000 From: Robert Marella <rmarella@gmail.com> To: freebsd-questions@freebsd.org Subject: Can't remove empty directory Message-ID: <425C4834.2090909@gmail.com>
next in thread | raw e-mail | index | archive | help
Greetings I think this problem occurred during "portmanager -u" but I can't be certain. Portmanager did a core dump this morning. I tried a portsclean -CD and /usr/ports/accessibility/gail/work cannot be removed. Here is what I have tried. p4# cd /usr/ports/accessibility/gail p4# ls -l total 14 -rw-r--r-- 1 root wheel 920 Apr 12 02:21 Makefile -rw-r--r-- 1 root wheel 109 Apr 12 02:21 distinfo drwxr-xr-x 2 root wheel 512 Nov 10 20:16 files -rw-r--r-- 1 root wheel 211 Apr 4 2004 pkg-descr -rw-r--r-- 1 root wheel 2667 Apr 12 02:21 pkg-plist drwxr-xr-x 3 root wheel 512 Apr 12 10:06 work p4# rm -r work rm: work/gail-1.8.3/gail: Directory not empty rm: work/gail-1.8.3: Directory not empty rm: work: Directory not empty p4# cd work/gail-1.8.3/gail/ p4# ls -la total 0 p4# cd .. p4# ls -la total 4 drwxr-xr-x 3 root wheel 1024 Apr 12 10:06 . drwxr-xr-x 3 root wheel 512 Apr 12 10:06 .. drwxr--r-- 4 root wheel 0 Apr 12 09:51 gail p4# chflags -R noschg gail p4# rm -r gail rm: gail: Directory not empty p4# rm gail rm: gail: is a directory p4# rmdir gail rmdir: gail: Directory not empty p4# The obvious problem is that the number of links is incorrect but I don't know how to make that right. Any help is greatly appreciated. Robert
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?425C4834.2090909>