Commits


add hexdump command to aid the debugging Also skip the progression bar if hexdump is enabled.


killing a stale makefile from before the -portable merge


sync ftp manpage with actual commands


ftp: fix some usage reportings


kamid: always reply to auth with a struct kd_auth_proc even when the authentication fails


use $PAGER instead of hardcoding `less' (which is still the default)


tmp_file: enable the close-on-exec flag


fix walk_path error handling: do_clunk only when miss == 0 ...otherwise nfid is not valid and do_clunk aborts.


add `edit' command refactor the "write or create file" code into a function (woc_file) to share it with the `put' command.


refactor tmp file creation in its own function


new `put' command to upload a file


convert dup_fid to return an error string too


walk_path: consume only the returned amount of qids due to a typo, we end up trying to consume the *expected* amount of qids, but the walk could be shorter.


rework walk_path In particular it's important not to die if the first component can't be walked for any reason!


fix loop for writes don't write more than fetched. The code wrote up to sizeof(buf), but it may try to write more than the data sent, which is r (<= sizeof(buf)).