plan9fox/sys/src/cmd
kemal 2cdc8075f8 file: recognize executable scripts, etc.
The patch does the following:

1. Adds recognition of executable script (shebang) files.
2. Returns correct MIME type for mbox files (RFC 4155).
3. Returns XML instead of HTML type in some cases.
2021-04-20 01:40:31 +02:00
..
1a cc: dont export gethunk(), hunk, nhunk and thunk 2020-05-12 23:18:48 +02:00
1c ?c: get rid of sprint(), strcpy() and strcat()/strncat(), cleanup 2020-04-19 23:51:18 +02:00
1l [12kq]l: remove unix compat code for cputime() 2020-12-19 19:15:02 +01:00
2a cc: dont export gethunk(), hunk, nhunk and thunk 2020-05-12 23:18:48 +02:00
2c ?c: get rid of sprint(), strcpy() and strcat()/strncat(), cleanup 2020-04-19 23:51:18 +02:00
2l [12kq]l: remove unix compat code for cputime() 2020-12-19 19:15:02 +01:00
5a cc: dont export gethunk(), hunk, nhunk and thunk 2020-05-12 23:18:48 +02:00
5c 5c, 6c, 7c, 8c, kc, qc, vc: use explicit gmove(... , nn) in cgen() for result of OAS*, OPREINC, OPOSTINC 2021-03-13 13:56:40 +01:00
5e make bind(2) error handling consistent 2020-05-02 17:32:01 +02:00
5i 5i ki qi vi: avoid buffer overflow in command read loop 2018-09-29 13:58:08 +02:00
5l 5l: fix shifts by zero 2021-01-23 20:36:09 -08:00
6a cc: dont export gethunk(), hunk, nhunk and thunk 2020-05-12 23:18:48 +02:00
6c 5c, 6c, 7c, 8c, kc, qc, vc: use explicit gmove(... , nn) in cgen() for result of OAS*, OPREINC, OPOSTINC 2021-03-13 13:56:40 +01:00
6l cc: add a couple notes to the comments regarding flags 2020-12-29 19:38:59 +00:00
7a cc: dont export gethunk(), hunk, nhunk and thunk 2020-05-12 23:18:48 +02:00
7c 5c, 6c, 7c, 8c, kc, qc, vc: use explicit gmove(... , nn) in cgen() for result of OAS*, OPREINC, OPOSTINC 2021-03-13 13:56:40 +01:00
7l 7l: handle dupok flag in TEXT/GLOBL data 2020-05-17 19:08:10 +02:00
8a cc: dont export gethunk(), hunk, nhunk and thunk 2020-05-12 23:18:48 +02:00
8c 5c, 6c, 7c, 8c, kc, qc, vc: use explicit gmove(... , nn) in cgen() for result of OAS*, OPREINC, OPOSTINC 2021-03-13 13:56:40 +01:00
8l cc: dont export gethunk(), hunk, nhunk and thunk 2020-05-12 23:18:48 +02:00
9nfs cmd: remove a bit of unused stuff 2016-11-17 02:59:40 +01:00
9660srv pre-lib9p servers: fix incorrect Tversion handling 2020-08-01 15:27:28 +02:00
abaco abaco: add fonts.h to HFILES in mkfile (thanks eekee) 2020-06-21 19:34:54 +09:30
acid acid: increase hash size (thanks jonas.amoson) 2021-01-05 19:37:26 -08:00
acme acme: fix border size, autoindent undo: imported from plan9port (thanks jxy) 2021-04-14 20:30:24 -07:00
astro astro: fix typo 2014-11-26 18:56:00 -08:00
atazz atazz: fix %.*s format in special command processing 2019-02-25 04:20:00 +01:00
audio zuke: include libtags in CFLAGS 2021-04-13 15:55:19 +02:00
auth passwd: make legacy mode explicit 2021-01-17 18:01:53 -08:00
aux correct off-by-one nul termination. 2021-03-11 19:37:44 +01:00
awk awk: fix truncated input after fflush 2020-11-19 23:05:26 -08:00
bitsy bitsy/keyboard: do not rely on atoi() being able to parse hex 2015-08-03 14:52:07 +02:00
bzfs pre-lib9p servers: fix incorrect Tversion handling 2020-08-01 15:27:28 +02:00
bzip2
cb
cc cc: mk clean should delete cc.a$O 2021-01-24 09:58:39 -08:00
cdfs cmd: remove a bit of unused stuff 2016-11-17 02:59:40 +01:00
cec fix dangerous werrstr() usages 2014-11-07 12:51:59 +01:00
cfs make bind(2) error handling consistent 2020-05-02 17:32:01 +02:00
cifs always zero initialize Tm structure for tm2sec() 2019-12-03 08:22:02 +01:00
compress improve usage messages (thanks henesy) 2020-03-10 10:09:34 -07:00
con
cpp cpp: fix mutually recursive macros 2020-07-13 18:50:14 -07:00
cwfs cwfs: fix interpretation of startdump argument 2020-12-06 13:54:10 +10:30
db improve usage messages (thanks henesy) 2020-03-10 10:09:34 -07:00
dial
dict improve usage messages (thanks henesy) 2020-03-10 10:09:34 -07:00
diff diff: fix change marker for -c mode 2020-11-16 19:19:37 +01:00
disk disk/fdisk: add OpenBSD partition type 2021-04-09 16:11:48 +02:00
dossrv pre-lib9p servers: fix incorrect Tversion handling 2020-08-01 15:27:28 +02:00
dtracy show line numbers in dtracy type errors 2020-01-09 11:59:44 -08:00
eqn cmd: remove a bit of unused stuff 2016-11-17 02:59:40 +01:00
execnet fix threadsetname usage in few places 2014-05-03 13:07:52 +02:00
exportfs oexportfs: move legacy code for cpu and import to separate program 2020-12-13 20:09:03 +01:00
ext2srv
faces faces: add -c option to remove faces with button 1 click (thanks sirjofri) 2020-12-04 09:33:55 +01:00
fax
forp forp: change indexing to verilog-like semantics 2018-12-06 10:56:32 +00:00
grap
graph
grep grep: fix handling of -b flag 2020-03-26 18:24:39 +10:30
gs gs: apply mitigations against CVE-2017-8291 (thanks jsmoody) 2019-06-21 18:57:20 +02:00
gzip always zero initialize Tm structure for tm2sec() 2019-12-03 08:22:02 +01:00
hg hg: disable tag caching, allows accessing hg repo from dump 2017-10-04 03:59:17 +02:00
hgfs hgfs: fix loadrevinfo() for empty log bug 2020-03-01 23:23:01 +01:00
hjfs hjfs: update mtime and qid.vers for directory on rename 2020-07-12 18:54:22 +02:00
hoc hoc: don't nest calls to follow() when lexing ++/+= and --/-= (#287) 2019-12-06 11:53:44 -08:00
htmlfmt htmlfmt: use uhtml for character set conversion 2014-05-12 02:38:53 +02:00
htmlroff htmlroff: fix out of bounds access (thanks Rei-sen, via plan9port) 2020-08-01 10:49:29 -07:00
ip ip/tftpd: add a syslog message about what error we return to the client on a NAK 2021-04-11 23:58:30 +02:00
jpg ico: avoid potential nil pointer dereferences 2020-12-15 20:45:26 +10:30
ka cc: dont export gethunk(), hunk, nhunk and thunk 2020-05-12 23:18:48 +02:00
kc 5c, 6c, 7c, 8c, kc, qc, vc: use explicit gmove(... , nn) in cgen() for result of OAS*, OPREINC, OPOSTINC 2021-03-13 13:56:40 +01:00
ki 5i ki qi vi: avoid buffer overflow in command read loop 2018-09-29 13:58:08 +02:00
kl [12kq]l: remove unix compat code for cputime() 2020-12-19 19:15:02 +01:00
lex
lp lpdaemon: fix bogus string termination (from sources) 2013-06-14 23:22:57 +02:00
map map/libmap: remove unused function/definitions 2016-03-01 19:36:24 -05:00
mk improve usage messages (thanks henesy) 2020-03-10 10:09:34 -07:00
mothra mothra: "d": use lite version, disable redirect 2021-03-02 08:41:02 +01:00
ndb /sys/src/cmd/ndb/dns.h: 2021-02-19 21:29:55 -05:00
nusb [9front] [patch] nusb/ether -t rndis 2021-04-01 12:54:08 +02:00
paqfs pre-lib9p servers: fix incorrect Tversion handling 2020-08-01 15:27:28 +02:00
pic
plot plot: handle create() failure 2016-03-01 19:40:14 -05:00
plumb plumber: open rule files as OCEXEC, to avoid leaking them to sub commands 2020-12-29 18:45:42 +01:00
postscript printfont: load all fonts for printfont all 2021-04-09 16:09:31 +02:00
proof proof: don't confuse ""(1) (thanks Stuart Morrow) 2020-11-30 13:13:49 -08:00
python [9front] ape: remove _SUSV2_SOURCE guard from inttypes.h 2021-01-23 19:47:12 -08:00
qa cc: dont export gethunk(), hunk, nhunk and thunk 2020-05-12 23:18:48 +02:00
qc 5c, 6c, 7c, 8c, kc, qc, vc: use explicit gmove(... , nn) in cgen() for result of OAS*, OPREINC, OPOSTINC 2021-03-13 13:56:40 +01:00
qi 5i ki qi vi: avoid buffer overflow in command read loop 2018-09-29 13:58:08 +02:00
ql [12kq]l: remove unix compat code for cputime() 2020-12-19 19:15:02 +01:00
ratfs pre-lib9p servers: fix incorrect Tversion handling 2020-08-01 15:27:28 +02:00
rc rc: show line numbers on error 2020-11-01 11:56:26 -08:00
replica replica: fix mkfile script installation (thanks Amavect) 2020-07-20 18:58:52 -07:00
rio rio: make window focus changes deterministic, cleanup wind.c 2021-03-07 20:26:30 +01:00
sam sam/{address.c, sam.h}: bump STRSIZE to 512MB (thanks, Ori_B) 2021-02-19 21:15:15 -05:00
samterm tweak selection criteria 2020-04-25 15:18:04 -07:00
scat make bind(2) error handling consistent 2020-05-02 17:32:01 +02:00
scuzz scuzz: uncomment synccache command 2015-09-22 12:23:49 +02:00
snap snap: use Mach->szaddr as the width of the stack pointer (fixes snap on amd64) 2018-11-22 20:27:27 +01:00
spell mkfiles: do not rely on path containing the . element 2013-10-26 20:22:01 +02:00
spin spin: Update to most recent version. (thanks Ori_B) 2017-11-22 21:09:31 +01:00
spred various cmds: replace magic numbers with Kdel/Keof, etc 2014-12-13 21:58:49 +01:00
syscall syscall: don't rely on . being in $path (thanks Silas) 2021-01-23 15:06:30 +01:00
tapefs pre-lib9p servers: fix incorrect Tversion handling 2020-08-01 15:27:28 +02:00
tbl tbl: fix wrong register count calculation (found by erik) 2013-01-05 16:59:56 +01:00
tcs improve usage messages (thanks henesy) 2020-03-10 10:09:34 -07:00
telco pre-lib9p servers: fix incorrect Tversion handling 2020-08-01 15:27:28 +02:00
troff
troff2html
upas patch for imap when imap fails 2021-04-17 18:52:11 -07:00
va cc: dont export gethunk(), hunk, nhunk and thunk 2020-05-12 23:18:48 +02:00
vac pre-lib9p servers: fix incorrect Tversion handling 2020-08-01 15:27:28 +02:00
vc 5c, 6c, 7c, 8c, kc, qc, vc: use explicit gmove(... , nn) in cgen() for result of OAS*, OPREINC, OPOSTINC 2021-03-13 13:56:40 +01:00
venti venti/conf: fix padding so we write multiple of sector size 2018-01-28 17:22:00 +01:00
vi 5i ki qi vi: avoid buffer overflow in command read loop 2018-09-29 13:58:08 +02:00
vl cc: dont export gethunk(), hunk, nhunk and thunk 2020-05-12 23:18:48 +02:00
vmx vmx: reduce cpu load by eliminating nop-loop 2021-02-23 15:54:09 +01:00
vnc vnc: I don't like your face. 2021-01-23 13:20:09 -08:00
vt vt: rfork environment varibles (thanks fshahriar) 2020-12-18 19:23:48 -08:00
webfs webfs: bracket literal ipv6 host in "Host:" header 2019-03-23 00:49:07 +01:00
wikifs fix dangerous werrstr() usages 2014-11-07 12:51:59 +01:00
aan.c improve usage messages (thanks henesy) 2020-03-10 10:09:34 -07:00
alarm.c
ar.c
archfs.c
ascii.c ascii: replace mnemonic np (new page) with ff (form feed) for consistency 2015-10-25 14:46:10 -04:00
basename.c
bc.y improve usage messages (thanks henesy) 2020-03-10 10:09:34 -07:00
bind.c make bind(2) error handling consistent 2020-05-02 17:32:01 +02:00
cal.c cal: use Sa/Su in all cases, also simplify the code 2021-01-12 21:08:12 +01:00
calendar.c
camv.c camv: fix leak on resize 2018-05-20 16:47:41 +02:00
cat.c
chgrp.c chgrp: remove unused function declaration (thanks archeus) 2017-04-01 09:01:26 +00:00
chmod.c
cleanname.c
clock.c clock: remove unused variable 2016-11-17 02:12:49 +01:00
cmp.c
col.c
colors.c improve usage messages (thanks henesy) 2020-03-10 10:09:34 -07:00
comm.c
cp.c abandon streaming experiment 2016-03-17 17:48:19 +01:00
cpu.c oexportfs: move legacy code for cpu and import to separate program 2020-12-13 20:09:03 +01:00
crc32.c added crc32 2014-09-30 13:07:36 +02:00
crop.c crop: allow no-ops for pipelines 2021-04-12 10:29:54 +02:00
date.c date: use new libc date apis. 2020-08-10 19:01:45 -07:00
dc.c dc: fix crashes with : operator (thanks istvan bak) 2020-11-21 17:56:34 -08:00
dd.c dd: error with invalid size suffixes, add 'm' 2021-01-19 15:15:12 -08:00
deroff.c deroff: fix out-of-bounds access if runes above 0X80 are inside EQ clauses (thanks mmnmnnmnmm, via plan9port) 2020-08-01 10:54:03 -07:00
derp.c derp: handle file type changes 2012-11-21 15:34:12 +01:00
du.c
echo.c
ecp.c
ed.c ed: dont pass string constants to mktemp() 2014-06-22 01:48:02 +02:00
factor.c
fcp.c fcp: use iounit() to determine buffer size, reduce number of worker procs to 8 2015-07-19 03:32:38 +02:00
file.c file: recognize executable scripts, etc. 2021-04-20 01:40:31 +02:00
fmt.c fmt: improved version using less memory 2012-10-23 02:08:35 +02:00
fortune.c fortune: avoid buffer overflow for lines >= 2K, make sure index has at least one entry, use nrand()/ntruerand() for uniform distribution 2017-03-19 22:04:26 +01:00
fplot.c fplot: add hyperbolic functions 2020-11-27 10:51:16 +01:00
freq.c make all the commands agnostic about Rune width. (from sources) 2013-04-24 20:13:18 +02:00
getmap.c improve usage messages (thanks henesy) 2020-03-10 10:09:34 -07:00
gview.c
histogram.c various cmds: replace magic numbers with Kdel/Keof, etc 2014-12-13 21:58:49 +01:00
history.c
html2ms.c html2ms: 0xFFFD → Runeerror 2021-02-23 08:52:59 +01:00
iconv.c
idiff.c
import.c make bind(2) error handling consistent 2020-05-02 17:32:01 +02:00
init.c init: remove dependency to <authsrv.h> 2015-08-21 23:40:31 +02:00
io.c io(1): %llx -> %ullx 2017-05-22 09:04:51 +00:00
iostats.c iostats: dup 9p pipe to both fd 0 and fd 1 for exportfs 2020-12-13 20:23:03 +01:00
join.c fix utf and rune handling in preparation for 32bit runes 2012-12-31 21:09:46 +01:00
kbmap.c kbmap: avoid division by zero when window becomes too small 2020-12-27 23:39:28 +01:00
kprof.c kprof: fix precedence (thanks geoff) 2018-09-19 01:11:49 +02:00
ktrace.c ktrace: arm64 support 2019-05-03 21:16:23 +02:00
lens.c various cmds: replace magic numbers with Kdel/Keof, etc 2014-12-13 21:58:49 +01:00
lnfs.c pre-lib9p servers: fix incorrect Tversion handling 2020-08-01 15:27:28 +02:00
lock.c lock: reopen lockfile after changing mode to make lock effective 2015-06-13 15:01:02 +02:00
look.c
ls.c
mc.c
md5sum.c sum, md5sum, sha1sum: set exit status properly on open/read errors 2018-09-18 15:58:22 -07:00
mkdir.c
mkfile /sys/src/cmd/mkfile: fix PCONLY exclude (thanks stefan) 2019-05-24 22:52:20 +02:00
mklib mklib, upas/common: clean up libcommon properly (thanks mikan) 2021-02-03 08:10:11 -08:00
mkmany /sys/src/cmd/mk*: add $CLEANFILES to clean and nuke targets 2012-10-25 01:58:43 +02:00
mkone mkone: fix man target (thanks Amavect) 2019-05-17 01:51:28 +02:00
mksyslib acid: update acid libraries for amd64 2014-02-10 23:07:37 +01:00
mntgen.c
mount.c libauth: change programs to use the new procsetuser() function 2020-12-19 18:02:37 +01:00
mpc.y mpc: remove unused yylval type 2016-10-19 22:15:51 -05:00
ms2html.c
mtime.c
mug.c
mv.c
netstat.c
news.c news: make -a and -n get along (thanks lyndon) 2021-01-26 18:07:04 -08:00
nfs.c
nm.c
nntpfs.c
ns.c ns: remove left over vararg check pragma 2018-02-26 19:58:54 +01:00
os.c os(1): add c implementation of inferno os command and cmd(3) device manpages 2019-11-30 20:10:08 +01:00
p.c
page.c page: fix for kerTeX dvi 2021-04-09 16:40:56 +02:00
paint.c paint: change colors in the palette with button 3 2020-05-23 20:41:20 +02:00
pbd.c
pc.y pc: set exit status depending on errors 2020-12-15 14:37:36 +01:00
pcc.c pcc: back out -+ flag removal to allow gracefull upgrade path with new pcc but old cpp 2019-06-19 15:15:35 +02:00
pipefile.c make bind(2) error handling consistent 2020-05-02 17:32:01 +02:00
pr.c
primes.c
prof.c retire the dec alpha port 2016-05-04 16:11:48 +02:00
ps.c
pstree.c pstree: manpage, print pid in first column, bio, silly walks 2012-11-08 00:06:54 +01:00
ptrap.c ptrap: implement filtering on plumb attributes 2020-12-06 21:52:01 +01:00
pump.c
pwd.c
qr.c qr: fix exit status 2021-01-05 22:36:03 +10:30
ramfs.c ramfs: fix truncfile() for non multiple of extend size (64k) 2021-02-27 15:08:34 +01:00
ratrace.c improve usage messages (thanks henesy) 2020-03-10 10:09:34 -07:00
rdbfs.c rdbfs: add -s srvname (from charles forsyth's rdbfs-srvname patch) 2013-06-14 23:28:59 +02:00
read.c
resample.c resample: simplify getint() 2015-08-03 18:30:02 +02:00
resize.c resize: add -n for nearest neighbour 2015-09-23 17:52:35 +02:00
rm.c
rotate.c more generic way to deal with image chan conversion for resize/resample/rotate 2012-10-18 20:17:12 +02:00
rx.c rx: remove ssh code 2017-01-13 19:54:42 +01:00
sat.c add sat(1) command 2018-03-18 03:03:12 +00:00
scram.c scram: remove _PTS(5). it just doesn't make any sense 2016-10-15 23:42:22 +02:00
screenlock.c screenlock: use initdisplay(2), top the window (thanks stuart morrow) 2021-01-28 18:07:48 -08:00
seconds.c seconds: remove junk from usage 2021-01-17 11:12:18 -08:00
sed.c sed: accept and ignore -E and -r flags for unix compatibility 2020-05-02 16:56:52 +02:00
seg.c io, seg: we should exits(nil) at the end of main 2013-05-28 20:06:53 -04:00
seq.c
sh.C
sha1sum.c sum, md5sum, sha1sum: set exit status properly on open/read errors 2018-09-18 15:58:22 -07:00
size.c
sleep.c
sort.c sort: fix memory leak (thanks Igor Boehm) 2021-01-01 11:48:39 -08:00
split.c fix misleading/wrong fd checks 2018-10-20 18:44:09 +00:00
srv.c libauth: change programs to use the new procsetuser() function 2020-12-19 18:02:37 +01:00
srvfs.c oexportfs: move legacy code for cpu and import to separate program 2020-12-13 20:09:03 +01:00
ssh.c ssh: work around github.com's broken cipher negotiation code (thanks Ori_B) 2019-05-27 02:11:16 +02:00
sshfs.c sshfs: update usage text to match man page 2020-07-29 13:56:03 +09:30
sshnet.c sshnet: prevent ssh process from keeping the mount alive 2020-05-26 21:37:25 +02:00
stats.c stats: don't query battery and temp as often when using acpi 2021-01-22 10:15:36 +01:00
strings.c we look for strings.c, it is broken, this strings.c will make us go. 2014-05-30 04:05:18 +02:00
strip.c
sum.c improve usage messages (thanks henesy) 2020-03-10 10:09:34 -07:00
swap.c improve usage messages (thanks henesy) 2020-03-10 10:09:34 -07:00
tail.c tail: fix follow for empty files (thanks cinap_lenrek) 2014-05-08 14:29:44 +02:00
tar.c Parse global pax header in the right place. 2019-11-15 13:26:25 -08:00
tee.c tee: get rid of openf[100] array and just dup() filedescriptors to 3+[0..n-1] 2014-12-21 05:12:56 +01:00
test.c test: fix expression parser 2021-02-06 15:51:09 +10:30
time.c
timepic.c timepic: string support 2015-09-29 20:49:28 +02:00
tlsclient.c tlsclient: allow dumping the server's certificate with new -d flag 2018-01-06 07:43:08 +01:00
tlssrv.c cmd/ip/*: chown the network connection after authentication 2019-09-21 23:36:44 +02:00
touch.c
touchfs.c
tprof.c
tput.c tput: check sbrk return value 2015-08-25 03:06:36 -07:00
tr.c tr: fix 4-byte runes fix (thanks rsc) 2014-04-26 14:26:40 +02:00
trace.c make bind(2) error handling consistent 2020-05-02 17:32:01 +02:00
truetypefs.c truetypefs: fall back to width if advance is zero 2018-10-12 08:34:17 -07:00
ttfrender.c add ttfrender(1) 2018-06-09 14:34:44 +00:00
tweak.c tweak: support showdata plumb action (thanks sirjofri) 2021-01-16 18:30:50 +01:00
uhtml.c uhtml: dont trust charset=utf-8 attribute, verify. 2016-03-13 23:47:24 +01:00
unicode.c unicode: use Runeerror 2012-12-31 22:49:29 +01:00
uniq.c uniq: use Bsize for buffers 2014-05-03 10:48:13 +02:00
units.y
unlnfs.c
unmount.c
urlencode.c improve usage messages (thanks henesy) 2020-03-10 10:09:34 -07:00
walk.c [9front] walk: properly format permissions 2021-04-06 14:43:38 +02:00
wc.c improve usage messages (thanks henesy) 2020-03-10 10:09:34 -07:00
webcookies.c webcookies: remove straggling custom date parser 2021-01-19 18:14:53 -08:00
winwatch.c winwatch: always reflow when possible (thanks telephil9) 2021-02-02 11:56:45 +01:00
xargs.c
xd.c xd: use new bio magic to make -u more efficient 2017-06-12 19:56:57 +00:00
yacc.c stop fiddling with path construction. 2020-05-13 18:50:01 -07:00