Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

allowing scp but not ssh (here's how) REVISITED



"Derek D. Martin" <ddm at pizzashack.org> writes:

> This code is, AFAIK, bug free, and does the job 100%.  It really could
> use a configure script and a Makefile, but until I write them, there's
> a little cheesy install script at the end.  Also, remember to change
> the path to the sftp-server binary if it's different on your platform.

I can probably crash this program by running it with less than three
arguments.  I'd suggest moving the call to build_arg_vector() until
after you perform all your verification (i.e. right before the exec).

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org