diff options
author | stanley lieber <stanley.lieber@gmail.com> | 2015-05-14 21:04:51 -0400 |
---|---|---|
committer | stanley lieber <stanley.lieber@gmail.com> | 2015-05-14 21:04:51 -0400 |
commit | 20b8f1e777d04ce7daa771ee75092192d3120bda (patch) | |
tree | 933911868bd69653ab9af28b634f44627fcaebf2 /rc/bin/rc-httpd | |
parent | 21f97338f86b9aa4a2995ddc7bbe539efadfab70 (diff) | |
download | plan9front-20b8f1e777d04ce7daa771ee75092192d3120bda.tar.xz |
rc-httpd/handlers/dir-index: plan 9 files may be chmod +a:
The mode printed under the -l option contains 11 characters,
interpreted as follows: the first character is
d if the entry is a directory;
a if the entry is an append-only file;
- if the entry is a plain file.
Therefore, handle them in automatically generated directory listings.
Diffstat (limited to 'rc/bin/rc-httpd')
-rwxr-xr-x | rc/bin/rc-httpd/handlers/dir-index | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/bin/rc-httpd/handlers/dir-index b/rc/bin/rc-httpd/handlers/dir-index index 39452bfd7..31e5b0236 100755 --- a/rc/bin/rc-httpd/handlers/dir-index +++ b/rc/bin/rc-httpd/handlers/dir-index @@ -82,7 +82,7 @@ function hrsize(size){ if(size > 1024) return sprintf("%.1fKB", size/1024) return sprintf("%iB", size) } -/^-/ { +/^(-|a)/ { print "<tr>" print "<td class=\"size\">"hrsize($6)"</td>" print "<td class=\"month\">"$7"</td>" |