[SOLVED!]: “input must be 8 bytes long at /usr/local/lib/perl/5.8.7/Crypt/DES.pm” BUG

I finally found a very strange workaround for this very strange bug in ptkftp:

I ended up putting calls to “new” (login), “put”, and “chmod” in a string with their args and evalling it. ie. changing:

put($fromfile, $tofile)

to:

eval “put(‘$fromfile’,’$tofile’)”;

Don’t know why this works – must have something to do with Tk’s en/decoding.

Advertisements

Feel Free to Comment (Name/Email/Website optional):

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: