summaryrefslogtreecommitdiff
path: root/pith/store.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2013-05-31 17:08:22 -0600
committerEduardo Chappa <chappa@washington.edu>2013-05-31 17:08:22 -0600
commit81e994d7907f850506ddc248f84761a54995e58c (patch)
tree3bc4993b48ddeec45dee51323437200ab975887c /pith/store.c
parent077522d7e058133f9de99d0d74481566b21c5a98 (diff)
downloadalpine-81e994d7907f850506ddc248f84761a54995e58c.tar.xz
* Fix not allow remote execution by adding PIPE_NOSHELL to the opening of a url by
a browser.
Diffstat (limited to 'pith/store.c')
-rw-r--r--pith/store.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/pith/store.c b/pith/store.c
index e8508257..58154c53 100644
--- a/pith/store.c
+++ b/pith/store.c
@@ -171,6 +171,14 @@ so_get(SourceType source, char *name, int rtype)
if(source == TmpFileStar)
our_unlink(so->name);
+ if (ps_global->send_immediately){
+ ps_global->failed_read++;
+ if(ps_global->failed_read == 5){
+ printf("No configurationf file found. Where is your .pinerc file?\n");
+ exit(1);
+ }
+ }
+
fs_give((void **)&so->name);
fs_give((void **)&so); /* so freed & set to NULL */
}