Skip to content

Commit

Permalink
Enlarge set of special shell characters
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanrueger committed Aug 21, 2024
1 parent 50662bb commit b49fe93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/strutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 2 additions & 0 deletions src/term.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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))))
Expand Down

0 comments on commit b49fe93

Please sign in to comment.