[Bug libc/21243] New: support_delete_temp_file should issue warning for failed remove()
carlos at redhat dot com
sourceware-bugzilla@sourceware.org
Mon Mar 13 13:59:00 GMT 2017
https://sourceware.org/bugzilla/show_bug.cgi?id=21243
Bug ID: 21243
Summary: support_delete_temp_file should issue warning for
failed remove()
Product: glibc
Version: 2.25
Status: NEW
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: carlos at redhat dot com
CC: drepper.fsp at gmail dot com
Target Milestone: ---
In support/temp_file.c(support_delete_temp_files):
98 support_delete_temp_files (void)
99 {
100 while (temp_name_list != NULL)
101 {
102 remove (temp_name_list->name);
103 free (temp_name_list->name);
104
105 struct temp_name_list *next
106 = (struct temp_name_list *) temp_name_list->q.q_forw;
107 free (temp_name_list);
108 temp_name_list = next;
109 }
110 }
111
We don't check the results of remove() and it could have failed. We should
check the result and issue a warning or fail depending on the situation.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list