From b49fe93402f00b5392d58e7d0c3f947f45956221 Mon Sep 17 00:00:00 2001 From: Stefan Rueger Date: Wed, 21 Aug 2024 23:25:36 +0100 Subject: [PATCH] Enlarge set of special shell characters --- src/strutil.c | 2 +- src/term.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/strutil.c b/src/strutil.c index 68234f328..be9108c5c 100644 --- a/src/strutil.c +++ b/src/strutil.c @@ -1553,7 +1553,7 @@ char *str_quote_bash(const char *s) { // Return the string in closed-circuit space so it can be used as shell argument const char *str_ccsharg(const char *str) { - const char *special="\"' $\\#[]<>|;{}()*?~&", *s; + const char *special="\"'` $\\#[]<>|;{}()*?~&!", *s; for(s = str; *s; s++) if(strchr(special, *s)) diff --git a/src/term.c b/src/term.c index 246db412c..b5a905b81 100644 --- a/src/term.c +++ b/src/term.c @@ -1997,6 +1997,7 @@ static int fusel_factory(const PROGRAMMER *pgm, const AVRPART *p, const AVRMEM * pmsg_warning("cannot update %s owing to unusual memory size %d\n", mem->desc, mem->size); return -1; } + // Read in memory as little endian for(int i = 0; i < mem->size; i++) { value[i] = mem->initval >> (8*i); @@ -2052,6 +2053,7 @@ static int cmd_factory(const PROGRAMMER *pgm, const AVRPART *p, int argc, const return ret; } + // Reset fuses to factory values for(LNODEID ln = lfirst(p->mem); ln; ln = lnext(ln)) if(!avr_mem_exclude(pgm, p, (m = ldata(ln))))