summaryrefslogtreecommitdiff
path: root/sys/src
AgeCommit message (Collapse)Author
2021-11-03zuke: fix search function ignoring matching artist nameSigrid Solveig Haflínudóttir
2021-11-01ndb/dnsquery: make ! bang work with reverse lookups, document in ndb(8)cinap_lenrek
2021-11-01ndb/dns: use correct attribute when serializing caa record in ndb formatcinap_lenrek
2021-11-01ndb/dnsdebug: dont duplicate rrfmt()cinap_lenrek
introduce our own RR* format %P for pretty printing and call %R format internally, then use it to print the rest of the line after the tab, prefixed with the padded output.
2021-11-01ndb/dns: fix ndb serialization of RR*cinap_lenrek
have todo multiple fmtprint() calls for idnname() as the buffer is shared. do not idnname() rp->os and rp->cpu, these are symbols. always quote txt= records.
2021-10-31tinc: fix typo in unknown host error messageqwx
2021-10-31libtags: no tags is still fine if format is knownSigrid Solveig Haflínudóttir
2021-10-31libc: idn2utf()/utf2idn(): check for < 1 buffer, can't insert terminating NUL.cinap_lenrek
2021-10-31libsec: no point in checking for "xn--" marker, just call idn2utf().cinap_lenrek
2021-10-31libc: fix overflow of domain component rune buffer for idn2utf()cinap_lenrek
If the source string has a run of more than 256 runes without a "." dot, we'd overflow the runebuffer in idn2utf(). The utf2idn() routine had a check in the while loop, but that is actually wrong too, as it would insert a dot and restart the loop in the middle of a domain component. Just error out if a domain component is too long.
2021-10-31ape: add missing idn2utf, utf2idn to lib9Ori Bernstein
this fixes the libsec build under ape.
2021-10-31acmed: pass original utf8 subject domain to challengefn, simplifycinap_lenrek
try to keep everything in utf8 format.
2021-10-31libsec: decode international domain names in certificat subject, fix ↵cinap_lenrek
overflow botch this is for consistency, so all certificte subjects will be returned in utf8.
2021-10-31acmed: handle international domain namescinap_lenrek
2021-10-31libsec: handle international domain names in certificate requestcinap_lenrek
2021-10-28git/pack: check pf->pack for nil before Bterming itSigrid Solveig Haflínudóttir
2021-10-28mkplist: add -s option to enable "simple" sort (thanks qwx)Sigrid Solveig Haflínudóttir
2021-10-28zuke: simplify volume control logicSigrid Solveig Haflínudóttir
2021-10-27zuke: reset before tokenize, increase player thread stackSigrid Solveig Haflínudóttir
2021-10-27acmed: remove unused defineOri Bernstein
we don't use or care about the user agent.
2021-10-27acmed: move from ip/ to auth/Ori Bernstein
Getting certs is more tied to authentication than it is to ip.
2021-10-27acmed: reject -t flag when -e is given, dup stderr to stdout of -e cmdcinap_lenrek
2021-10-26zuke: do not change volume with delta == 0Sigrid Solveig Haflínudóttir
2021-10-26zuke: support other volume handles, update volume when /dev/audio is openedSigrid Solveig Haflínudóttir
2021-10-25acmed: tokenize domains from subject also with spaces (fixed multidom cert)cinap_lenrek
2021-10-25acmed: add external command flag -e, improvements, bugscinap_lenrek
- allow for external command to be run to install a challenge using -e flag - remove the challengedom argument, it is given by the subject in the csr - fix some filedescriptor leaks in error paths
2021-10-24ndb/dns: implement caa record type in ndbcinap_lenrek
this allows the caa records to be specified in ndb as: caa=<value> tag=<tag> flags=<flags> where tag defaults to "issue" and flags to 0 when omited.
2021-10-24git/serve: one more silencing of non-interactive printsOri Bernstein
2021-10-24git/serve: don't show progress when not interactiveOri Bernstein
this prevents console spam
2021-10-23kernel: make growfd(), findfreefd() and newfd2() staticcinap_lenrek
2021-10-23devswap: improve setswapchan()cinap_lenrek
- check for unusable file types like directories and append-only files. - we should eigther error without any side effects or succeed.
2021-10-23kernel: fix stat bugscinap_lenrek
In a few places, we where using a fixed buffer of sizeof(Dir)+100 size for stat. This is not correct and fails if the name returned in stat is long. This results in being unable to seek to the end of file with a long filename. The kernel should do the same thing as dirfstat() from libc; handling the conversion and buffer allocation and returning a freeable Dir* pointer. For this, a new dirchanstat() function was added. The fstat syscall was not rewriting the name to the last path element; fix it. In addition, gracefully handle the mountfix case, reallocating the buffer to accomidate the required stat length plus size of the new name so dirsetname() does not fail.
2021-10-22libsec: fix wrong assert condition (introduced in ↵cinap_lenrek
775a4bea4386c12067057de0e56dd8baa34f43ec)
2021-10-17libsec: fix operator precedence bugs (thanks kemal)cinap_lenrek
2021-10-17libsec: fix bugs in tls extension handling (thanks kemal)cinap_lenrek
this patch fixes bugs in tls extension handling: 1. if conn->serverName is an empty string, tlsClientExtensions will generate a SNI with an empty hostname, which is forbidden according to RFC 6066: opaque HostName<1..2^16-1>; check if conn->serverName has at least one char. 2. checkClientExtensions fail with clients that doesn't have extensions, because it doesn't check if ext is nil. fix that up. 3. rewrite checkClientExtensions. some parts of the code does not check the length properly, and it could be simplified heavily.
2021-10-17libaml: resolve refs in ObjectType instructioncinap_lenrek
The standard states in section 19.5.93: .... Notice that if this operation is performed on an obeject reference such as one produced by the Alias, Index, or RefOf statements, the obect type of the base object is returned.
2021-10-17libaml: implement ObjectType instruction (thanks sigrid)cinap_lenrek
2021-10-17libaml: implement ToString instructioncinap_lenrek
2021-10-16devtls: implement "hangup" ctl messagecinap_lenrek
This makes devtls connection directories compatible to hangup function (see dial(2)).
2021-10-16kernel: call freebroken() for kproc() when out of processescinap_lenrek
2021-10-16kernel: dont block allocating kstack for new processescinap_lenrek
Have newproc() fail returning nil if we can't allocate the kernel stack instead of locking up in smalloc().
2021-10-15acmed: import acme (RFC8555) clientOri Bernstein
2021-10-13libthread: fix debug prints, simplifycinap_lenrek
Do the debuglevel check before calling the print function for _threaddebug, by making it a macro. Do not waste cycles passing arguments. Generalize the _threaddebug function into _threadprint() and add a varargcheck pragma. This function can also be used from _threadassert(). Fix missing arguments in one case, fix trailing newlines in _threaddebug(). Make _threadgetproc()/_threadsetproc() a macro, just dereferencing Proc**_threadprocp. Simplify the mainjump, just call _threadsetproc() directly without that mainp dance. Remove the _schedinit() argument, it uses _threadgetproc() now. Get rid of Mainarg struct, just have a global variable for argc.
2021-10-13usbxhci: xhcirecover proc does not need to check status every 10mscinap_lenrek
The timing loop is here for the case if the controller doesnt produce an interrupt when becoming broken. In normal case, we should just get worken up from the interrupt. In any case, 100 times a second polling is not neccessary here, increase to 1 second.
2021-10-12kernel: return error from sysrfork instead of waiting and retryingcinap_lenrek
The old strategy of wait and retry doesnt seem to work very well as it keeps all the forking parents stuck waiting in the kernel worsening the situation. The idea with this change is to have rfork() return error quickly; and without whining; as most callers would just react with a sysfatal() which might be better for surviving this.
2021-10-12cc: do not expand function-like macros for non-function invocationscinap_lenrek
It is a bit of a annoyance that kenc will try to expand function like macros on any symbol with the same name and then complain when it doesnt see the '(' in the invocation. test case below: void foo(int) { } struct Bar { int baz; /* <- should not conflict */ }; void main(void) { baz(123); }
2021-10-12libthread: remove unused _workerdata() prototype from threadimpl.hcinap_lenrek
2021-10-12libthread: remove more garbage: _threadnotefd, _threadpasserpid.cinap_lenrek
2021-10-12libthread: remove unused skip() functioncinap_lenrek
2021-10-12libthread: deal with _schedfork() and _schedexec() returning -1cinap_lenrek
The current behaviour of the kernel to deadlock itself instead of returning an error on fork. This might change in the future, so prepare libthread to handle this case. For _schedfork(), we'r going to just retry forking on every switch, while for _schedexec(), the exec will fail and send ~0 down the pid channel.