]>
git.lizzy.rs Git - plan9front.git/log
cinap_lenrek [Wed, 3 May 2017 18:47:46 +0000 (20:47 +0200)]
ctime(2): fix example (thanks raiz)
raiz → the reason that the manpage example works not because
it's a correct timezone file format, but because readtimezone()
(in libc) fails and defaults to GMT.
cinap_lenrek [Tue, 2 May 2017 02:07:21 +0000 (04:07 +0200)]
upas/fs: handle partial fetches (imap server returning less messages than available)
cinap_lenrek [Mon, 1 May 2017 20:50:16 +0000 (22:50 +0200)]
inst/configether: in manual network configuration, ask for dns server
cinap_lenrek [Mon, 1 May 2017 20:49:35 +0000 (22:49 +0200)]
dist/ndb: move sources auth server to ndb/common, list root dns servers in ndb/local as a fallback
cinap_lenrek [Mon, 1 May 2017 18:22:23 +0000 (20:22 +0200)]
5e: fix special bitshift and rotations
cinap_lenrek [Mon, 1 May 2017 00:31:50 +0000 (02:31 +0200)]
vt(1): the "send" menu became "paste"
cinap_lenrek [Mon, 1 May 2017 00:18:09 +0000 (02:18 +0200)]
sshfs(4): fix bad cross reference
cinap_lenrek [Mon, 1 May 2017 00:15:03 +0000 (02:15 +0200)]
vgamach64xx: remove drawdebug reference
cinap_lenrek [Sun, 30 Apr 2017 22:03:01 +0000 (00:03 +0200)]
merge
cinap_lenrek [Sun, 30 Apr 2017 22:01:14 +0000 (00:01 +0200)]
ip/torrent: avoid requesting same chunks
instead of always just requesting the missing range
of the current piece, remember the workpiece offset
and request sequential chunks from the workpiece.
this avoids double requests of the same ranges when
the peer does not respond with the data immidiately.
spew [Sun, 30 Apr 2017 20:08:36 +0000 (15:08 -0500)]
libregexp: miscellaneous little cleanups
cinap_lenrek [Sun, 30 Apr 2017 16:28:06 +0000 (18:28 +0200)]
sshfs: fix -r / retulting in "//foo" paths, memory leaks, use estrdup9p()
just use cleanname() to implement pathcat(), which
handles double slashes and ".." elements already.
have to free the partial dir structue on error in
parsedir().
use estrdup9p() instead of strdup().
cinap_lenrek [Sun, 30 Apr 2017 02:06:03 +0000 (04:06 +0200)]
vnc: substitute iprint() with fprint(2, (gone from libmemdraw)
cinap_lenrek [Sat, 29 Apr 2017 23:51:07 +0000 (01:51 +0200)]
kernel: fix rewinding in directories with pread() offset
reading directories with pread() offset has to work the same
way as read(), otherwise exportfs breaks rewinding in directories.
cinap_lenrek [Sat, 29 Apr 2017 23:49:21 +0000 (01:49 +0200)]
lib9p: allow rewinding in 9pfile directories
cinap_lenrek [Sat, 29 Apr 2017 19:13:48 +0000 (21:13 +0200)]
libmemdraw: get rid of kernel iprint() emulation
cinap_lenrek [Sat, 29 Apr 2017 19:10:28 +0000 (21:10 +0200)]
libmemdraw/libmemlayer: get rid of drawdebug prints
cinap_lenrek [Sat, 29 Apr 2017 19:09:11 +0000 (21:09 +0200)]
devdraw: ignore drawdebug command
cinap_lenrek [Sat, 29 Apr 2017 19:03:52 +0000 (21:03 +0200)]
libdraw: get rid of _drawdebug variable
aiju [Sat, 29 Apr 2017 18:44:01 +0000 (18:44 +0000)]
sshfs: add -r and -M options
cinap_lenrek [Sat, 29 Apr 2017 15:28:35 +0000 (17:28 +0200)]
cwfs: allow "none" user to rename files
cinap_lenrek [Sat, 29 Apr 2017 14:25:48 +0000 (16:25 +0200)]
sshfs: don't crash when no /etc/password file could be read on the remote side
in a cygwin environment, theres no /etc/passwd file to
translate numeric uid/gid's. changing passwdparse() to
ignore nil string argument.
aiju [Fri, 28 Apr 2017 20:42:38 +0000 (20:42 +0000)]
sshfs: check correctly for directory bits; calculate parent directory correctly
aiju [Fri, 28 Apr 2017 18:45:32 +0000 (18:45 +0000)]
sshfs: reset SReq->reqid field to fix double-free of request ids
aiju [Fri, 28 Apr 2017 18:32:04 +0000 (18:32 +0000)]
sshfs: remove debug print
aiju [Fri, 28 Apr 2017 18:21:03 +0000 (18:21 +0000)]
sshfs: don't cache directory contents
aiju [Fri, 28 Apr 2017 17:15:20 +0000 (17:15 +0000)]
add sshfs(4) manpage
aiju [Fri, 28 Apr 2017 16:34:24 +0000 (16:34 +0000)]
sshfs: look up uid/gid from /etc/^(passwd group)
aiju [Fri, 28 Apr 2017 15:41:48 +0000 (15:41 +0000)]
add sshfs
aiju [Fri, 28 Apr 2017 15:41:39 +0000 (15:41 +0000)]
ssh: add support for subsystems
cinap_lenrek [Thu, 27 Apr 2017 18:06:00 +0000 (20:06 +0200)]
upas/fs: fix warning about unused Err: label
aiju [Thu, 27 Apr 2017 08:46:44 +0000 (08:46 +0000)]
games/md: copy updated cpu.c from blit
aiju [Thu, 27 Apr 2017 08:42:41 +0000 (08:42 +0000)]
add blit(1) manpage
aiju [Mon, 24 Apr 2017 23:26:43 +0000 (23:26 +0000)]
ssh: make number of retries configurable
aiju [Mon, 24 Apr 2017 23:16:59 +0000 (23:16 +0000)]
ssh: loop keyboard-interactive on failure
aiju [Mon, 24 Apr 2017 16:07:34 +0000 (16:07 +0000)]
ssh: fix typo
aiju [Mon, 24 Apr 2017 16:04:09 +0000 (16:04 +0000)]
ssh: add "none" method to find out list of acceptable methods
spew [Mon, 24 Apr 2017 15:50:03 +0000 (10:50 -0500)]
libavl: fix documentation
cinap_lenrek [Mon, 24 Apr 2017 00:21:43 +0000 (02:21 +0200)]
ssh(1): refer to thumbprint(6) for the sshthumbs file format
cinap_lenrek [Sun, 23 Apr 2017 23:46:22 +0000 (01:46 +0200)]
ssh: print the whole ssh-rsa hostkey in base64 when thumb check fails
in addition to the thumbprint, also print the whole
hostkey in base64 (same format as openssh uses) to
make verification easier.
cinap_lenrek [Sun, 23 Apr 2017 17:00:08 +0000 (19:00 +0200)]
libsec: sha256 support for thumbprint files, use it in ssh as well
initThumbprints() now takes an application tag argument
so x509 and ssh can coexist.
the thumbprint entries can now hold both sha1 and sha256
hashes. okThumbprint() now takes a len argument for the
hash length used.
the new function okCertificate() hashes the certificate
with both and checks for any matches.
on failure, okCertificate() returns 0 and sets error string.
we also check for include loops now in thumbfiles, limiting
the number of includes to 8.
cinap_lenrek [Sun, 23 Apr 2017 16:42:26 +0000 (18:42 +0200)]
upas/fs: don't abort on malformed unix header
cinap_lenrek [Sun, 23 Apr 2017 01:31:20 +0000 (03:31 +0200)]
ssh(1): add $home/lib/thumbfile to FILE section
cinap_lenrek [Sun, 23 Apr 2017 00:59:32 +0000 (02:59 +0200)]
ssh: document thumbfile options
cinap_lenrek [Sun, 23 Apr 2017 00:54:41 +0000 (02:54 +0200)]
ssh: implement primitive hostkey verification
this checks $home/lib/sshthumbs for the sha256 hash
of the hosts rsa public key. if its not there, it
prints the rc command to add it and exits.
cinap_lenrek [Sat, 22 Apr 2017 23:11:12 +0000 (01:11 +0200)]
ssh(1): add bugs section about host not being authenticated
cinap_lenrek [Sat, 22 Apr 2017 22:42:33 +0000 (00:42 +0200)]
ssh(1): initial documentation, needs examples for authentication
cinap_lenrek [Sat, 22 Apr 2017 20:52:34 +0000 (22:52 +0200)]
vt: handle underline attribute
cinap_lenrek [Sat, 22 Apr 2017 20:21:47 +0000 (22:21 +0200)]
merge
cinap_lenrek [Sat, 22 Apr 2017 20:19:17 +0000 (22:19 +0200)]
vt: handle nocolor flag and reversed background colors
spew [Sat, 22 Apr 2017 19:28:34 +0000 (14:28 -0500)]
merge
spew [Sat, 22 Apr 2017 19:28:02 +0000 (14:28 -0500)]
replica: use libavl for avl tree implementation
cinap_lenrek [Sat, 22 Apr 2017 19:07:53 +0000 (21:07 +0200)]
vt: handle insert/delete/home/end keys for vt220/xterm
spew [Sat, 22 Apr 2017 18:59:37 +0000 (13:59 -0500)]
libavl: lookup can return the closest match
cinap_lenrek [Sat, 22 Apr 2017 18:16:07 +0000 (20:16 +0200)]
vt: handle application/normal mode (really fixes cursor keys)
cinap_lenrek [Sat, 22 Apr 2017 16:21:57 +0000 (18:21 +0200)]
merge
cinap_lenrek [Sat, 22 Apr 2017 16:01:49 +0000 (18:01 +0200)]
vt: fix xterm cursor keys
cinap_lenrek [Sat, 22 Apr 2017 00:42:16 +0000 (02:42 +0200)]
merge
cinap_lenrek [Sat, 22 Apr 2017 00:41:00 +0000 (02:41 +0200)]
vt: fix background drawing
mischief [Fri, 21 Apr 2017 22:09:50 +0000 (15:09 -0700)]
nusb/ptp: treat any assocation as a directory
previously nusb/ptp showed only 'generic folder' association type as directories, but all associations work as directories. tested with LG G5/android 7.0
cinap_lenrek [Fri, 21 Apr 2017 17:25:25 +0000 (19:25 +0200)]
merge
cinap_lenrek [Fri, 21 Apr 2017 17:23:56 +0000 (19:23 +0200)]
ssh: actually handle flow control and channel id's
aiju [Fri, 21 Apr 2017 17:16:44 +0000 (17:16 +0000)]
fix yacc bug (found by dan cross)
cinap_lenrek [Thu, 20 Apr 2017 23:45:11 +0000 (01:45 +0200)]
ssh: increase initial window size for better throughput
cinap_lenrek [Thu, 20 Apr 2017 22:23:46 +0000 (00:23 +0200)]
rsa(8): fix description of rsa2ssh (now, ssh2 format only)
cinap_lenrek [Thu, 20 Apr 2017 22:09:30 +0000 (00:09 +0200)]
ssh: cleanup debug messages
cinap_lenrek [Thu, 20 Apr 2017 21:45:56 +0000 (23:45 +0200)]
ssh: do not try authentication methods that we know are not possible
cinap_lenrek [Thu, 20 Apr 2017 20:28:21 +0000 (22:28 +0200)]
ssh: implement password and keyboard-interactive authentication methods
cinap_lenrek [Wed, 19 Apr 2017 20:34:47 +0000 (22:34 +0200)]
vt: cursoron, don't resize winow when replying history
cinap_lenrek [Wed, 19 Apr 2017 19:03:26 +0000 (21:03 +0200)]
ssh: fix locking, and key reexchange handling
when we initiate re-key exchange we data packets can still
come in. so instead we have everything that can come in all
the time in dispatch() function (including KEXINIT) and have
the receiver process just call that in a loop. exclude dispatch
and the sender proc from corrupting each others sendpkt() calls
with the QLock sl.
stanley lieber [Wed, 19 Apr 2017 17:38:30 +0000 (13:38 -0400)]
/lib/rob, /lib/theo: I don't think so.
aiju [Wed, 19 Apr 2017 10:16:00 +0000 (10:16 +0000)]
remove accidentally pushed change to .hgignore
aiju [Wed, 19 Apr 2017 10:13:36 +0000 (10:13 +0000)]
blit: always show top-left corner; add tony kaku's -m flag
aiju [Wed, 19 Apr 2017 09:00:44 +0000 (09:00 +0000)]
change cpurc to look for service folder in /cfg/$sysname and /cfg/default
aiju [Wed, 19 Apr 2017 08:51:18 +0000 (08:51 +0000)]
disable all services except 17019, 17020 by default
cinap_lenrek [Wed, 19 Apr 2017 00:18:28 +0000 (02:18 +0200)]
vt: but not too fast :-)
if drawing can't keep up with the host, make sure we
eventually redraw the screen and check for user events.
cinap_lenrek [Tue, 18 Apr 2017 23:46:20 +0000 (01:46 +0200)]
vt: make it fast
cinap_lenrek [Tue, 18 Apr 2017 01:13:15 +0000 (03:13 +0200)]
vt: send interrupt on exit, open logfile OCEXEC, run host after environment got exported, send rest of arguments to host
cinap_lenrek [Tue, 18 Apr 2017 01:06:39 +0000 (03:06 +0200)]
ssh: close the channel when vt hangs up
cinap_lenrek [Mon, 17 Apr 2017 22:21:51 +0000 (00:21 +0200)]
vt: allow for a bit of buffering
cinap_lenrek [Mon, 17 Apr 2017 22:18:03 +0000 (00:18 +0200)]
vt: convert from event to threads
the event library doesnt do any flow control. if the host
keeps sending data while the user is mousing arround,
extract() will collect the data until memory fills up.
so instead we abandon the event library and convert
the program to use channels.
cinap_lenrek [Mon, 17 Apr 2017 03:32:01 +0000 (05:32 +0200)]
vt: increase history buffer to 64K runes
cinap_lenrek [Mon, 17 Apr 2017 03:22:16 +0000 (05:22 +0200)]
ssh: weekend project
manpage should follow...
cinap_lenrek [Mon, 17 Apr 2017 03:18:24 +0000 (05:18 +0200)]
factotum: append public rsa encyption exponent after the modulus
this makes implementing ssh-rsa authentication easier, as we
then can convert the public key directly to ssh format and check
if the server will accept that public key.
tlshand just needs the modulus to see if the public key matches
the one it has from the certificate.
cinap_lenrek [Mon, 17 Apr 2017 03:13:46 +0000 (05:13 +0200)]
rsa2ssh: drop support for version 1 key format
cinap_lenrek [Mon, 17 Apr 2017 03:12:07 +0000 (05:12 +0200)]
vt: implement snarf support
cinap_lenrek [Tue, 11 Apr 2017 00:26:39 +0000 (02:26 +0200)]
pc64: state mp.h dependency for archacpi.$O
cinap_lenrek [Sun, 9 Apr 2017 02:36:47 +0000 (04:36 +0200)]
upas/fs: remove imap lastread debounding
its unclear why this was here, waketime logic should handle
this already.
cinap_lenrek [Sun, 9 Apr 2017 02:32:38 +0000 (04:32 +0200)]
upas/fs: fix sync condition
we used to check for mb->d->name != nil before stating, to avoid
stating pop3/imap mailboxes who don't really have a local file,
but this breaks when the md->d is reconstructed (faked) from
the index! resulting in the mailbox stop being refreshed.
the solution is to not have mb->d == nil for imap/pop mailoxes.
cinap_lenrek [Sat, 8 Apr 2017 21:01:19 +0000 (23:01 +0200)]
upas/fs: make use of Maxmsg consistent
cinap_lenrek [Sat, 8 Apr 2017 21:00:48 +0000 (23:00 +0200)]
upas/fs: simplify imap4read()
cinap_lenrek [Sat, 8 Apr 2017 20:59:15 +0000 (22:59 +0200)]
upas/fs: fix dir comparsion and skip directories in mdir, avoid stat
- ignore directories in dirskip()
- use sortkey of 0 for invalid items, otherwise it could confuse qsort()
- use file size from dirreadall() instead of doing stat
- various cleanups
cinap_lenrek [Sat, 8 Apr 2017 20:52:06 +0000 (22:52 +0200)]
upas/send: use openfolder() to deliver mail to avoid code duplication
cinap_lenrek [Sat, 8 Apr 2017 20:50:17 +0000 (22:50 +0200)]
upas/common: deliver mail to mdir as .tmp file and rename after it has been fully written
theres a race condition when mail delivery to mdir is slow,
then upas/fs sees partial mail file and caches the truncated
file size.
to avoid this, delivery will create the new mail file with
the .tmp extension (which is ignored by upas/fs) and after
everything has been written, rename it to the final name.
cinap_lenrek [Tue, 4 Apr 2017 22:34:07 +0000 (00:34 +0200)]
kernel: avoid waserror() botch in devwalk (from drawterm, thanks aiju)
calculate alloc flag before waserror(), as compilers like
gcc will not notice the value changing later because
setjump() restores the old value due to callee-saves.
change is applies here to make it easier to merge with
drawterm.
thanks to aiju for debugging this; used to cause drawterm
memory leak until compiled with gcc -O0.
cinap_lenrek [Tue, 4 Apr 2017 18:13:31 +0000 (20:13 +0200)]
kernel: fix memory leak in checkpagerefs() debug function (thanks aiju)
cinap_lenrek [Tue, 4 Apr 2017 17:01:57 +0000 (19:01 +0200)]
tlshand: simplify tlsReadN()
cinap_lenrek [Mon, 3 Apr 2017 23:59:17 +0000 (01:59 +0200)]
tlshand: fix mpint to bytes conversion, reorganize send/recv buffer, check for overflow in msgSend()
when converting mpint to bytes, always pad it to the size of
the modulus (RSA,DHE,ECDHE). mptobytes() now takes a byte len
parameter which the caller usually calculates from the group
modulus using mpsignif(). this bug sometimes caused "bad record mac"
after the handshake.
use a shared buffer, given that msgSend()/msgRecv() don't overlap
we can use the first half for sending, and the top half for
receiving, shifting down as neccesary. the space beween sendp and
recvp is free.
explicitely check for overflow in msgSend().
cinap_lenrek [Mon, 3 Apr 2017 00:50:36 +0000 (02:50 +0200)]
merge
cinap_lenrek [Mon, 3 Apr 2017 00:48:47 +0000 (02:48 +0200)]
tlshand: fix ECDHE and DHE for SSLv3