From: raiz@firemail.cc
To: 9front@9front.org
Cc: Kurt H Maier <khm@sciops.net>
Subject: Re: [9front] webpaste: fail if file unreadable
Date: Sat, 10 Jun 2017 15:09:02 +0000 [thread overview]
Message-ID: <e464cc61638e0846491a143484b05993@firemail.cc> (raw)
In-Reply-To: <20170610074237.GA6818@wopr>
On 2017-06-10 07:42, Kurt H Maier wrote:
>
> I'm advocating that hpost should test for an unreadable file, not
> webpaste.
>
> khm
diff -r 7afc70a22b58 rc/bin/hpost
--- a/rc/bin/hpost Thu Jun 08 09:08:59 2017 +0200
+++ b/rc/bin/hpost Sat Jun 10 18:07:05 2017 +0300
@@ -40,6 +40,14 @@
shift
}
+for(i in $af){
+ file=`{echo $i | awk -F@ '{ print $2 }'}
+ if(! test -r $file){
+ echo unreadable file: $file >[1=2]
+ exit unreadable
+ }
+}
+
hpost=(hpost $l)
fn uenc {
prev parent reply other threads:[~2017-06-10 15:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-09 14:59 raiz
2017-06-09 16:30 ` Kurt H Maier
2017-06-09 23:40 ` raiz
2017-06-10 7:42 ` Kurt H Maier
2017-06-10 15:09 ` raiz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e464cc61638e0846491a143484b05993@firemail.cc \
--to=raiz@firemail.cc \
--cc=9front@9front.org \
--cc=khm@sciops.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).