Add strlcpy_unescape() function to undo escaping from front-end.

Includes unit test.
This commit is contained in:
Todd C. Miller
2021-01-27 15:41:54 -07:00
parent aa50aaf8da
commit 2804c2c78e
6 changed files with 223 additions and 30 deletions

View File

@@ -455,4 +455,7 @@ char *rcstr_alloc(size_t len);
char *rcstr_addref(const char *s);
void rcstr_delref(const char *s);
/* strlcpy_unesc.c */
size_t strlcpy_unescape(char *dst, const char *src, size_t size);
#endif /* SUDOERS_SUDOERS_H */