Commits


fix ls: don't hardcode fid=1


ftp: add nextfid to find the next lower free fid


add `rename' command it leverages the recently added wstat support


fmt


move struct np_stat to kami.h


ftp: print mtime in ls output Print the time (HH:MM) of the last edit is within the last 6 months, the year otherwise; match what `ls -lahF' does on OpenBSD, and I think it's cool.


print a / after directory entries


pretty print file permissions


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


ftp: fix some usage reportings


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