[PATCH] small improvements to ftp(1)

2016-06-24 Thread vladsotirov
Hi, The patch below implements the following changes to ftp(1), beginning with the least disruptive and ending with the most disruptive. 1) Change ftp->newer's behavior to match ftp->reget's behavior when stat(2) on the local file fails: do the file transfer from offset 0 instead of from whatever

[patch] fix use-after-free in ftp(1)

2016-05-24 Thread vladsotirov
Hello, I think I found a use-after-free bug and a manpage discrepancy. 1. ftp>newer prints nothing or garbage instead of the local filename, when alerting that the local file is newer than the remote file. I think this is because getit(argc, argv, -1, "w") frees globargv2, which is set equal to a