mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 22:35:10 +00:00
Fix mkstemps() extension handling. Sudoedit will now preserve the
extension properly when the system libc lacks mkstemps().
This commit is contained in:
@@ -140,7 +140,7 @@ mktemp_internal(char *path, int slen, int mode)
|
|||||||
tries *= 2;
|
tries *= 2;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
for (cp = start; *cp; cp++) {
|
for (cp = start; cp != ep; cp++) {
|
||||||
r = get_random() % NUM_CHARS;
|
r = get_random() % NUM_CHARS;
|
||||||
*cp = tempchars[r];
|
*cp = tempchars[r];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user