summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-06-26vt: allow scrolling with the mouse.Ori Bernstein
2021-06-26vt, ssh: don't send interrupts on window resizeOri Bernstein
When resizing windows, vt would signal ssh by updating the window size and sending an interrupt. Ssh reacted by forwarding both the winch and an interrupt. This change adds a WINCH generation counter so that ssh can differentiate between resizes and interrupts. If an interrupt comes in, and the WINCH generation changes, then the interrupt is taken as signalling a WINCH.
2021-06-26kencc: revert back to "set but not used"cinap_lenrek
The change to "assignment not used" breaks symmetry with "used and not set" and removes the reference to the specific warning mentioned in /sys/doc/comp.ms. Also, the patch was half-assed as that it left some typos in like "used an not set", which this change also fixed.
2021-06-25rc: skip arguments to Xsrcline, Xsrcfile in codefreeOri Bernstein
We weren't correctly skipping the location operators in codefree. This would mostly be work, but sometimes you'd get unlucky and have one of the argmuents mismatch, and that would lead to an invalid free. This correctly skips the args in codefree.
2021-06-24cc: create .$O files with DMTMPJacob Moody
2021-06-23tmdate(2): "ttt" is a valid format too, mention itSigrid Solveig Haflínudóttir
2021-06-22git/fs: use a better heuristic for permissions.Ori Bernstein
Since we now store /dist/plan9front in git, the initial assumption that the owner of the repo is the person touching it is not always true. This change gives us a better heuristic for the file permissions we should have in the files we copy around, basing it off of the permissions of the .git directory.
2021-06-22rc: correct line numbersOri Bernstein
When loading a file using ".", we could end up with our line numbers thrown off due to the mutation of lexline. Putting lexline into the runq beside the file that we're reading from causes it to get pushed and popped correctly, so that we no longer lose track of our location.
2021-06-21git(1): we have rebaseOri Bernstein
2021-06-21venti: make error messages consistent, remove duplicate messages.Ori Bernstein
removes duplicate messaes about restrictions, and duplicate checks, makes the error match the rest of the errors.
2021-06-21/sys/man/mkfile: drop reference to non-existent realtime(3)Alex Musolino
2021-06-21sched(9): replace '–' with '-' in NAME sectionAlex Musolino
This was causing the ptx utility in /sys/lib/man/permind to barf. As such, the PDF book of all manual sections could not be built.
2021-06-21/sys/man/mkfile: run eqn(1) for usb(3) section of bookAlex Musolino
2021-06-21venti: warn when opening /dev/swap failsNoam Preil
2021-06-21venti: fix detection of available RAM (fixes -m)Noam Preil
2021-06-21venti: inform user when reducing memory consumptionNoam Preil
2021-06-21/sys/src: add arm64 to installall listNoam Preil
2021-06-21kencc: clarify warning for unused assignmentsNoam Preil
2021-06-21git/revert: handle absolute paths gracefully (thanks deuteron)Ori Bernstein
when reverting files, absolute paths would get concatenated with $gitrel; use `cleanname -d` to fix this.
2021-06-21libsec: restore old behaviour for generating self signed certcinap_lenrek
2021-06-20libsec: emulate openssl asn1 when generating x509 csrcinap_lenrek
when trying to request certificates from letsencrypt, their test api would reject our csr because of "tuncated sequence" unless we force subectAltName by passing multiple domains (as comma separated list). apparently, we need to provide the context specific tag "cont [ 0 ]" for the extensions even when we do have any extensions for the csr (triggered when we need to have subjectAltNames). for this, we change mkcont() to take a Elist* instead, which then can be nil when not used. also put the tag number argument first, which makes it easier to read.
2021-06-20git/log: handle absolute paths gracefully.Ori Bernstein
strip off the repo prefix if the path given is absolute, and then look up as though it was rooted in the repo.
2021-06-20threadimpl.h: remove Printsize as well (unused)Sigrid Solveig Haflínudóttir
2021-06-20thread.h: threadnonotes does not existSigrid Solveig Haflínudóttir
2021-06-20threadimpl: remove unused fields from Proc structSigrid Solveig Haflínudóttir
2021-06-20libsec: move zero check to curve25519_dh_finish()cinap_lenrek
As checking for all zero has to be done in a timing-safe way to avoid a side channel, it is best todo this here instead of letting the caller deal with it. This adds a return type of int to curve25519_dh_finish() where returning 0 means we got a all zero shared key. RFC7748 states: The check for the all-zero value results from the fact that the X25519 function produces that value if it operates on an input corresponding to a point with small order, where the order divides the cofactor of the curve.
2021-06-20date(1): list all option characters in SYNOPSISAlex Musolino
Now that -f is specifically mentioned (as it takes an argument), might as well list the others in full.
2021-06-18libsec: various changes to tlskemal
1. add the curve x25519 to tls, both client and server. it's more faster, immune to timing attacks by design, does not require verifying if the public key is valid, etc etc. server-side has to check if the client supports the curve, so a new function has been introduced to parse the client's extensions. 2. reject weak dhe primes that can be easily cracked with the number field sieve algorithm. this avoids attacks like logjam. 3. stop putting unix time to the first 4 bytes of client/ server random. it can allow fingerprinting, tls 1.3 doesn't recommend it any more and there was a draft to deprecate this behaviour earlier.[1] 4. simply prf code, remove useless cipher enums. [1] https://datatracker.ietf.org/doc/html/draft-mathewson-no-gmtunixtime-00
2021-06-19nusbrc(8): fix typo (thanks igor@9lab.org)kvik
2021-06-19cal: fix days of week alignment for year view (thanks igor@9lab.org)kvik
term% cal -s1 2021 2021 Jan Feb Mar M Tu W Th F Sa Su M Tu W Th F Sa Su M Tu W Th F Sa Su 1 2 3 1 2 3 4 5 6 7 1 2 3 4 5 6 7 4 5 6 7 8 9 10 8 9 10 11 12 13 14 8 9 10 11 12 13 14 11 12 13 14 15 16 17 15 16 17 18 19 20 21 15 16 17 18 19 20 21 18 19 20 21 22 23 24 22 23 24 25 26 27 28 22 23 24 25 26 27 28 25 26 27 28 29 30 31 29 30 31 … Note how the days (i.e. ' M Tu W Th F Sa Su') for Feb and Mar do not align with the day numbers. This is because an extra space is left *before* adding the terminating '\0' via the pointer `dayw`. With the patch applied the calendar aligns nicely for the year view: term% cal -s1 2021 2021 Jan Feb Mar M Tu W Th F Sa Su M Tu W Th F Sa Su M Tu W Th F Sa Su 1 2 3 1 2 3 4 5 6 7 1 2 3 4 5 6 7 4 5 6 7 8 9 10 8 9 10 11 12 13 14 8 9 10 11 12 13 14 11 12 13 14 15 16 17 15 16 17 18 19 20 21 15 16 17 18 19 20 21 18 19 20 21 22 23 24 22 23 24 25 26 27 28 22 23 24 25 26 27 28 25 26 27 28 29 30 31 29 30 31 …
2021-06-17date(1): document '-f' optionOri Bernstein
2021-06-16git/branch: resolve implicit branch switch before using itOri Bernstein
When switching a branch implicitly -- ie, creating a local branch off of a remote branch -- we would get the list of changed files before we would resolve the implicit branch switch, leading to an empty list of changes.
2021-06-16lex: fix uninitialized fds (thanks きゐ)Ori Bernstein
2021-06-15troff: fix mangled fonts and character filesAnthony Martin
All of these files appear to have been imported from sources in a case-insensitive manner and consequently lost their original content. - Hx, Hb, and Hi fonts should be narrow versions of Helvetica - c[1-3] fonts should be condensed versions of Century Old Style - the lH character should be a filled left hand symbol - the rh character should be a stroked right hand symbol - the rc character should be the right ceiling symbol I've verified that these are the only files that collide with others when ignoring case (aside from rc/bin/[Kk]ill but those are correct).
2021-06-15git/import: handle mails with line wrapping and mimeOri Bernstein
git/import expected a patch, however upas/fs serves either a raw file without any of the mime decoding and line joining, or a directory, with the headers and body split out. This makes it a pain to apply some mails. So, here we teach git to import upas dirs natively, making it easy to handle all patches that come in as emails.
2021-06-15ircrc: freenode -> oftcglenda
2021-06-14sysupdate: clean up transitional codeOri Bernstein
we just need git/pull now
2021-06-14python, hg: tow outside the environment.Ori Bernstein
they've served us well, and can ride off into the sunset.
2021-06-13/sys/lib/dist/mkfile: test for .git directoryglenda
2021-06-12sam: remove refrence to /srv file in man pageJacob Moody
2021-06-12lib9p: add auth* functions to man pageJacob Moody
2021-06-13git/push, git/send: get better about erroring out earlyOri Bernstein
git/push died within a subshell, which prevented the whole program from exiting, and lead to an incorrect ref update line that confused people. git/send would eventually error out, but would push all the data before that happened; this was annoying.
2021-06-05a.out(1): update manpage to be 64 bit inclusivejacob gw
2021-06-13git/branch: preserve checked in permissions on branch updateOri Bernstein
we need to copy the files, and we should copy them with the permissions that exist in the repo.
2021-06-12B: expand path when plumbing filesOri Bernstein
When we plumb a file, we open it in the current working directory if it exists. However, if it doesn't exist, we end up opening it relative to the editor's working directory. Expanding the path to works around this issue.
2021-06-12B, sam: remove sam srv fileFulton Browne
No need for 2 programs doing the same job.
2021-06-12git/add: clear qid cache as side effectOri Bernstein
this is an occasionally useful side effect when doing surgery on repos, so let's have it.
2021-06-12mothra: read the content-type header over file(1) to determine type (thanks ↵Ori Bernstein
james palmer) this fixes some pages being classified as xml by file(1), meaning they would be rendered as plain text rather than as html.
2021-06-11Remove ap(1)Fulton Browne
Cool script - does not work.
2021-06-08git/conf: check in /sys/lib/git/config as a fallback to user-wide configkemal