-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 At some point hitherto, Derek Atkins hath spake thusly: > "Derek D. Martin" 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). Grr! That's where I had it in the original version, and I knew there was a reason why. I moved it to where it is because of a mistaken impression that it would impact do_exit_message(). That's what I get for writing code when I'm too tired... ;-) I'm not going to bother to repost the code. If anyone wants the fixed version (it's easy enough to fix it, by doing what Derek mentions above), let me know and I'll e-mail it to you. - -- Derek Martin ddm@pizzashack.org - --------------------------------------------- I prefer mail encrypted with PGP/GPG! GnuPG Key ID: 0x81CFE75D Retrieve my public key at http://pgp.mit.edu Learn more about it at http://www.gnupg.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9XRGjdjdlQoHP510RArZVAJ0fyIF9pWRkydm8floVobpjNABbsQCfQZji l27JidkgoKlYM243WzDg7Z0= =dnZW -----END PGP SIGNATURE-----