From 20b8f1e777d04ce7daa771ee75092192d3120bda Mon Sep 17 00:00:00 2001 From: stanley lieber Date: Thu, 14 May 2015 21:04:51 -0400 Subject: [PATCH] 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. --- rc/bin/rc-httpd/handlers/dir-index | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "" print ""hrsize($6)"" print ""$7""