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

Derek Atkins warlord at MIT.EDU
Fri Aug 16 08:48:00 EDT 2002


"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



More information about the Discuss mailing list