Commit graph

511 commits

Author SHA1 Message Date
qwx
fc17fc5151 /rc/bin: amend usage misdirections (thanks umbraticus) 2022-05-30 21:55:37 -04:00
glenda
c7e0f3b65f /rc/bin/9fs: case 9front: restore extra/ and iso/ 2022-05-30 21:55:36 -04:00
glenda
fe1b02113e /rc/bin/9fs: fix case 9config for new contrib.9front.org server. 2022-05-30 21:55:36 -04:00
b070185c00 add dus 2022-04-16 22:22:06 -04:00
glenda
1d9d4ffef8 /rc/bin/9fs: update case 9front 2022-04-09 01:07:24 +00:00
glenda
4daf4ffdbe /rc/bin/rc-httpd/handlers/error: restore fn 400 (thanks, qeed) 2022-04-01 02:12:30 +00:00
glenda
241667b933 /rc/bin/rc-httpd/handlers/{dir-index, serve-static}: commit the correct files this time (thanks, igor) 2022-04-01 01:59:47 +00:00
glenda
60ef662b98 /rc/bin/rc-httpd/handlers/{dir-index, serve-static}: fix directory traversal bug (thanks, igor) 2022-04-01 01:53:29 +00:00
cinap_lenrek
fc0357b3de nusbrc: fix FTDI detection 2022-02-06 00:11:49 +00:00
Ori Bernstein
1290c534be g: show all file names when grepping
When grep gets a single file argument, it does
not show the file name. This makes seeing the
file name in the output of 'g' difficult.

Pass a spare /dev/null to each invocation of g,
in order to force it to show the file name.
2022-02-05 00:40:45 +00:00
Michael Forney
33231f9222 g: use xargs instead of finding complete file list before greping 2022-01-01 10:26:14 +00:00
Michael Forney
4db9bebede g: fix duplicate files with directory argument
When we encounter a directory in the argument list, we don't want to
walk every argument, just that directory.
2022-01-01 22:51:39 +00:00
cinap_lenrek
3ec59c7b70 ape/psh: provide /dev/fd 2022-01-03 18:44:22 +00:00
cinap_lenrek
917f57b6c3 consolefs(4): import -> rimport 2021-12-31 15:50:22 +00:00
cinap_lenrek
a33e93a752 listen(8): remove old cpu, exportfs and rexec listeners 2021-12-31 15:43:16 +00:00
Igor Böhm
614f1d6268 rio: allow spaces in working directory path (-cd) when creating a new window via wctl
The initial working directory of a new window may be set by a
`-cd directory` option. However, the `-cd directory` option is
not capable of handling paths with spaces when used via wctl.

To enable paths with spaces the function
/sys/src/cmd/rio/wctl.c:/^parsewctl is extended to handle quoted
directory paths.

Before applying the patch the following will fail to open a new
window by writing to /dev/wctl:

<snip>
 % rio -i window
 % mkdir '/tmp/path with space'
 % echo new -cd '''/tmp/path with space''' window -x rc >> /dev/wctl
 % pwd
 /tmp/path with space
<snap>

The following invocation fails as well:

<snip>
 % window -cd '/tmp/path with space'
 % pwd
 /tmp/path with space
<snap>

After applying the patch the above sequences work as expected,
opening a window running rc with the working directory set to
'/tmp/path with space'.
2021-11-29 00:06:45 +00:00
cinap_lenrek
5465c4c01a netaudit: simplify 2021-12-01 21:59:22 +00:00
cinap_lenrek
efd4d75082 netaudio: fix auth check, can have multiple auth servers! 2021-12-01 21:53:18 +00:00
cinap_lenrek
43eb7eea62 netaudit: check for sys= attribute to be free of periods 2021-11-29 20:26:12 +00:00
cinap_lenrek
d3743d40c2 netaudit, ndb(6): the dom= attribute in ndb should be specified without the trailing period 2021-11-29 20:07:04 +00:00
glenda
e2a8d3493a /rc/bin/rc-httpd/{rc-httpd, handlers/error}: do some minimal sanitization on $SERVER_NAME before handing it off to select-handler. this prevents malformed Host: headers from retrieving arbitrary files from the file system. (thanks, Lightning) 2021-11-21 23:42:13 +00:00
Igor Böhm
07f8584723 rc-httpd: fold two sed calls into one when computing location 2021-10-29 22:59:06 +00:00
glenda
3e7a249f14 /rc/bin/9fs: remove case 9bugs (defunct) 2021-09-04 01:49:04 +00:00
glenda
79b325528a /rc/bin/9fs: update case 9contrib for new server 2021-09-04 01:32:00 +00:00
qwx
6d4261baab add joy(1): joystick script for all emulators, and docs
remove old /sys/src/games/nes/joynes in favor of joy(1).
joy(1) has more buttons for the other emulators;  there is
no longer a significance in the order of the keys.
document nusb/joy, add information in each emulator manpage.
2021-09-01 22:47:30 +00:00
glenda
1bb1b1a937 /rc/bin/9fs: 9front.org files now live on port 9000. 2021-08-27 01:09:12 +00:00
glenda
21283578eb ircrc: freenode -> oftc 2021-06-15 14:28:00 +00:00
Ori Bernstein
e1cc6a9a0f sysupdate: clean up transitional code
we just need git/pull now
2021-06-14 23:58:09 +00:00
Ori Bernstein
a73a964e51 python, hg: tow outside the environment.
they've served us well, and can ride off into the sunset.
2021-06-14 00:00:37 +00:00
Ori Bernstein
c12e49ecbf B: expand path when plumbing files
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-12 18:03:26 +00:00
Fulton Browne
1c30bd451e B, sam: remove sam srv file
No need for 2 programs doing the same job.
2021-06-12 17:20:53 +00:00
Fulton Browne
af95aa431d Remove ap(1)
Cool script - does not work.
2021-06-11 23:26:50 +00:00
Ori Bernstein
1bce186f6c homespool: remove obsolete lp config tool
homespool configures directories that it seems
lp no longer usees. we can drop it.
2021-06-07 16:46:57 +00:00
Ori Bernstein
01f7286521 see last try. 2021-06-06 17:44:10 +00:00
cinap_lenrek
f9ae020332 sysupdate: revert thumbstone temporarily
experiencing some issues with git9 transition... we likely need
to update git9 again before doing another attempt...
2021-06-06 13:07:51 -04:00
Ori Bernstein
4f3437a3cc sysupdate: insert tombstone
after this update, we're on git: update sysupdate
to switch repositories.
2021-06-05 05:17:03 -07:00
cinap_lenrek
014197f8d3 iwhois: add some improvements (thanks gall0ws)
patch from gall0ws:

> It's impossible to get whois right and probably nobody cares about it,
> nevertheless this small patch fixes some issues with the current version:
>
> * use a more common filter for default boilerplate (useful when
>   following the referral chain)
> * updated boilerplate for *.co.uk *.net.uk *.org.uk
> * added case *.com *.net (got it from iana.org)
> * use ARIN for IPv6 addresses
> * when unsure, check first whether whois.nic.$tld exists otherwise
>   usual fallback to InterNIC
> * fixed regexp for the referral chain (case, extra spaces or /)

- add usage handling.

--
cinap
2021-05-09 15:19:05 +02:00
Sigrid
c613382caf remove juke (use play or zuke instead) 2021-04-13 13:25:24 +02:00
Sigrid
b777d3fe7d remove old, broken scripts: fedex, u(s)ps, weather (thanks fulton) 2021-04-13 11:26:55 +02:00
cinap_lenrek
5d0c3ab7df termrc, cpurc: silence /net/ether* error message when there are no ethernet devices 2021-04-10 15:01:09 +02:00
kvik
1b4758d596 g: add lua, mk, ml, mli, myr, and sh suffixes 2021-04-09 03:18:53 +02:00
cinap_lenrek
777b1949b2 nusbrc: ignore rndis ethernet in /rc/bin/nusbed, handled by /sys/src/9/boot/nusbrc (thanks romano) 2021-04-08 21:57:24 +02:00
cinap_lenrek
c77b3ba143 whois: suppress missing file errors (thanks kivik) 2021-04-02 17:26:34 +02:00
moody
f704965a45 B, Bfn: fix invocation with multiple files, improve manual page 2021-02-27 19:35:06 +01:00
sl
72868594c7 newt: remove fn f, replace with walk 2021-02-09 22:50:31 -05:00
Sigrid
58b3f96f98 9fs: bell labs is very dead 2021-01-15 19:32:02 +01:00
cinap_lenrek
2e6a5e7046 fax, psfax, vwhois: use $user instead of /dev/user 2020-12-23 01:44:44 +01:00
cinap_lenrek
cad697d6ed B: dont pollute the environment 2020-12-23 01:44:10 +01:00
cinap_lenrek
4675de1ba0 kill, slay, broke: dont pollute environment, use $user 2020-12-23 01:43:29 +01:00
cinap_lenrek
e45c7480b6 Kill: don't pollute environment 2020-12-23 01:42:52 +01:00