scp -t . - possible idea for additional parameter

Larry Becke guyverdh at hotmail.com
Wed Oct 3 05:42:18 EST 2007


How difficult would it be to add an additional parameter to the -t that would *lock* the user at that directory level.  say -T instead of -t...
 
By locking, I mean translating /path/to/file as ./path/to/file, or ../../../path/../../../path/to/file as ./path/to/file.
 
Basically set a root point as the current home directory, then build the pathing based on that, any "../" would become "./" if the "../" would go above that home directory.
 
Just a thought...
_________________________________________________________________
Peek-a-boo FREE Tricks & Treats for You!
http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us


More information about the openssh-unix-dev mailing list