Commits


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)).


simplify fetch_fid: make it a single function again


typo


include test in the distribution tarball while here also delete the two remaining makefiles from before the -portable merge.


don't install ninepscript manpages


mark manpages as dist_man?_MANS instead of man?_MANS fixes `make distcheck'. it's so GNU to not ship manpages by default :/


add headers in compat/ as EXTRA_DIST


fix project name; `kamid' not -portable


fix kamid_SOURCES; kami.h is in lib/


remove useless file from before the -portable merge


CLOEXEC of all opened fds since we may want to spawn other programs, mark every file descriptor as cloexec. Fortunately, we don't end up opening many of them!


ftp: add `page' command The `page' command fetches a file and displays it using less(1). To do this, refactor fetch_fid to accept a file descriptor and add a spawn utility function.