您的位置:首页 > 运维架构 > Linux

bumblebee的一个空格引发的悲剧

2011-07-19 13:54 435 查看
一个空格也能使系统瘫痪?开源项目 bumblebee ,程序的安装脚本install.sh的一个Bug让这个项目成了大家关注的焦点,这个Bug的Fix如下:@@ -348,7 +348,7 @@ case "$DISTRO" in
-  rm -rf /usr /lib/nvidia-current/xorg/xorg
+  rm -rf /usr/lib/nvidia-current/xorg/xorg
很容易发现,这个Bug带来的问题是,执行install.sh后,用户的/usr目录直接被删除。最有趣的是全世界的程序员对这个Bug的强势围观评论。https://github.com/MrMEEE/bumblebee/commit/a047be85247755cdbe0acce6#diff-1
下面是部分程序员对这个Bug精彩的评论:天啊,希望没有人被咬到,应该总让别人先测试一下!——Oh man hope nobody got bit by this one - always let someone else test first! :-P
“喜欢”选项在哪?——where's the 'like' button?
反正我也不喜欢那个文件夹。——I didn't like that folder anyway.
额滴神啊,好,真挺好!——Omg, good, really good !
挺好!反正我也不喜欢这个操作系统。——nice! I didn't like the operating system anyways! 
现在再也不缺少硬盘空间了。——no more lack of disk space now
去他的/usr,没人需要它。——Fucking /usr nobody need it :D
我们终于有了第一个强大的基于Linux的病毒了。——Finally we have knowledge of the first and more powerfull
linux-based virus.
这只是从我电脑里删除了一大堆垃圾,谢谢了!——This just removed a ton of sh*t from my computer. Thanks! 
这Bug绝对霸气外露啊....
倒霉孩子
我本想第一个评论的,但不知道为神马我的/usr文件夹被删除了。——I was trying to be the first comment, but somehow my /usr dir was deleted
尼玛的rm /usr 伤不起啊!
每个一没有/usr目录的童鞋,上辈子都是误用了bumblebee的天使
(翻译不准确的地方,还请谅解!)评论中的一些图片:










 





(全文完)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  system linux disk 脚本 测试