summaryrefslogtreecommitdiff
path: root/sys/src/cmd/cpu.c
AgeCommit message (Collapse)Author
2022-05-08remove empty /sys/src/cmd/cpu.ccinap_lenrek
2021-12-13devssl, cpu, import, oexportfs: deleteOri Bernstein
SSL is implemented by devssl. It's extremely obsolete by now, and is not used anywhere but cpu, import, and oexportfs. This change strips out the devssl bits, but does not (yet) remove the code from libsec.
2021-05-05cpu: properly handle end of file in readstr()cinap_lenrek
2020-12-13oexportfs: move legacy code for cpu and import to separate programcinap_lenrek
The initial protocol handling in exportfs for cpu and import services is a huge mess. Saparate the code out into its own program with its own oexportfs(4) manpage.
2020-05-02make bind(2) error handling consistentcinap_lenrek
The mount() and bind() syscalls return -1 on error, and the mountid sequence number on success. The manpage states that the mountid sequence number is a positive integer, but the kernels implementation currently uses a unsigned 32-bit integer and does not guarantee that the mountid will not become negative. Most code just cares about the error, so test for the -1 error value only.
2019-09-21cmd/ip/*: chown the network connection after authenticationcinap_lenrek
for servers that handle incoming network connections and authentication, change the owner of the network connection file to the authenticated user after successfull authentication. note that we set the permissions as well to 0660 because old devip used to unconditionally set the bits.
2018-10-20fix misleading/wrong fd checksBurnZeZ
2018-09-26libc: add procsetname()cinap_lenrek
2016-09-18cpu: quote remaining remote command arguments, don't syslog on missing ↵cinap_lenrek
/mnt/term/dev/cpunote file
2016-07-24make error handling in 9p service loops consistentcinap_lenrek
when we get eof, stop the loop immidiately and do not rely on the read to eventually return an error. when convM2S() fails to decode the message, error out and stop the loop. there is no point in continuing.
2015-08-25fix fuckupglenda
2015-08-25import E script from bell labsmischief
2015-08-21cpu, import: remove old9p supportcinap_lenrek
2015-08-16cpu: cleanup ssl code, make sure -p works for any auth methodcinap_lenrek
2014-11-07fix dangerous werrstr() usagescinap_lenrek
werrstr() takes a format string as its first argument. a common error is to pass user controlled string buffers into werrstr() that might contain format string escapes causing werrstr() to take bogus arguments from the stack and crash. so instead of doing: werrstr(buf); we want todo: werrstr("%s", buf); or if we have a local ERRMAX sized buffer that we can override: errstr(buf, sizeof buf);
2014-05-24cpu: remove duplicate environment and chdir($home) code (thanks qrstuv)cinap_lenrek
newns() (called by auth_chuid()) already prepares the environment variables and puts us in a sane working directory (as specified by the namespace file).
2014-03-14cpu: make -p work with explicit service in dialstring (same as import)cinap_lenrek
2014-03-04cpu: remove unused connection directory buffermischief
2014-02-21fork filter procs with RFREND in various programscinap_lenrek
2013-12-05cpu: add -n flag for the remote site to allow "none" authentification method ↵cinap_lenrek
(inspired from sources cpu-noauth patch)
2013-09-08cpu, ratrace, trace: remove unused #include <bio.h>cinap_lenrek
2013-06-16make filesystem handling of read9pmsg() consistentcinap_lenrek
2013-04-24cpu: don't print spurious errstr for bad auth method, fix commentcinap_lenrek
2012-06-25cpu: revert to old quoting rules, sorrycinap_lenrek
2012-06-25cpu: implement aan(8) supportcinap_lenrek
2012-06-25cpu: -c command quoting, various cleanupscinap_lenrek
2011-12-19cpu: fix potential format string bugs, and get rid of redundant "cpu: " ↵cinap_lenrek
prefix in logfile
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen