* [9fans] rc-httpd cgi heredocs
@ 2025-10-21 0:36 Danny Wilkins via 9fans
2025-10-21 15:54 ` Danny Wilkins via 9fans
0 siblings, 1 reply; 2+ messages in thread
From: Danny Wilkins via 9fans @ 2025-10-21 0:36 UTC (permalink / raw)
To: 9fans
(Sorry if the last message got through, misremembered m as new mail in nedmail and it forwarded the first message in my inbox)
I'm messing around with cgi scripts in rc-httpd to store my html templates, however when I try to execute them, the script
errors out because it can't open /tmp/herex..... . I assume herefiles are 'fake' and just throw a file in /tmp, but what do
I need to do to let cgi scripts use them? I'm invoking my script with the cgi handler and I don't see any special handling
for tmp in there.
Thanks,
Danny
y
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T8ffed3c3ff150047-M1e0d0a22f47c0b55ff4c467d
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [9fans] rc-httpd cgi heredocs
2025-10-21 0:36 [9fans] rc-httpd cgi heredocs Danny Wilkins via 9fans
@ 2025-10-21 15:54 ` Danny Wilkins via 9fans
0 siblings, 0 replies; 2+ messages in thread
From: Danny Wilkins via 9fans @ 2025-10-21 15:54 UTC (permalink / raw)
To: 9fans
Ended up getting a response on IRC:
This was because CGI scripts are run as none, who has no write permissions. It was fixed by adding a ramfs call to the script to make a none-writable /tmp
On October 20, 2025 8:36:11 PM EDT, Danny Wilkins via 9fans <9fans@9fans.net> wrote:
> (Sorry if the last message got through, misremembered m as new mail in nedmail and it forwarded the first message in my inbox)
>
> I'm messing around with cgi scripts in rc-httpd to store my html templates, however when I try to execute them, the script
> errors out because it can't open /tmp/herex..... . I assume herefiles are 'fake' and just throw a file in /tmp, but what do
> I need to do to let cgi scripts use them? I'm invoking my script with the cgi handler and I don't see any special handling
> for tmp in there.
>
> Thanks,
> Danny
> y
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T8ffed3c3ff150047-Mf7216d33fd4c227503885ab8
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-10-21 16:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-21 0:36 [9fans] rc-httpd cgi heredocs Danny Wilkins via 9fans
2025-10-21 15:54 ` Danny Wilkins via 9fans
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).