LWN.net Logo

Another rope-shortener: Fixing filenames

Another rope-shortener: Fixing filenames

Posted Apr 3, 2009 21:45 UTC (Fri) by ballombe (subscriber, #9523)
In reply to: Another rope-shortener: Fixing filenames by dwheeler
Parent article: Shortening the rope

Actually restrincting filename is in conflict with rope shortening:

A good way to avoid rm * to remove your home directory is to do
file=$(echo -e "$HOME/\01"); touch $file; chmod 000 $file
However forbidding control characters in filenames would break that.

(Restricting filename breaks a number of programs, for example flwm and other windows managers that use filenames as menu titles.)


(Log in to post comments)

Another rope-shortener: Fixing filenames

Posted Apr 4, 2009 10:10 UTC (Sat) by modernjazz (guest, #4185) [Link]

> Actually restrincting filename is in conflict with rope shortening

Only if there isn't another way to solve the same problem, like putting
safeguards against deleting a home directory.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds