免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2996 | 回复: 0
打印 上一主题 下一主题

rm: cannot determine if this is an ancestor of the current working directory [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-03-22 16:35 |只看该作者 |倒序浏览
这是不是solaris的一个BUG?

SOLARIS 10

bash-2.05b$ more /etc/release
                             Solaris 10 s10_69 SPARC
           Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                            Assembled 05 October 2004
bash-2.05b$

bash-2.05b$ ls -l
total 36
drwxr-xr-x   2 test    other        512 Mar  8 12:07 _41
drwxr-xr-x   2 test    other        512 Mar  8 12:07 _42
drwxr-xr-x   2 test    other        512 Mar  8 12:07 _44
drwxr-xr-x   2 test    other        512 Mar  8 12:07 _4d
drwxr-xr-x   2 test    other        512 Mar  8 12:07 _4o
drwxr-xr-x   2 test    other        512 Mar  8 12:07 _4p
drwxr-xr-x   2 test    other        512 Mar  8 12:07 _4q
drwxr-xr-x   2 test    other        512 Mar  8 12:07 _51
drwxr-xr-x   2 test    other        512 Mar  8 12:07 _52
drwxr-xr-x   2 test    other        512 Mar  8 12:07 _53
drwxr-xr-x   2 test    other        512 Mar  8 12:07 _54
drwxr-xr-x   2 test    other        512 Mar  8 12:07 _55
drwxr-xr-x   2 test    other        512 Mar  8 12:07 _56
drwxr-xr-x   2 test    other        512 Mar  8 12:07 _57
drwxr-xr-x   2 test    other        512 Mar  8 12:07 _58
drwxr-xr-x   2 test    other        512 Mar  8 12:07 _59
drwxr-xr-x   2 test    other        512 Mar  8 12:07 _5a
drwxr-xr-x   2 test    other        512 Mar  8 12:07 _h
bash-2.05b$
bash-2.05b$ ls -l _41
total 0
bash-2.05b$

bash-2.05b$ rm -rf _41
rm: cannot determine if this is an ancestor of the current working directory
_41
bash-2.05b$

rmdir 可以
bash-2.05b$ rmdir _41
bash-2.05b$


另外root用rm -rf也正常 {:3_198:}  {:3_198:}  {:3_198:}
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP