mirror of
https://git.suyu.dev/suyu/flatpak.git
synced 2025-01-07 23:06:06 +00:00
34 lines
717 B
Diff
34 lines
717 B
Diff
|
Description: Zero errno before readdir call.
|
||
|
From: http://bugs.debian.org/375110
|
||
|
Forwarded: no
|
||
|
---
|
||
|
recurse.c | 3 +++
|
||
|
1 file changed, 3 insertions(+)
|
||
|
|
||
|
--- a/recurse.c
|
||
|
+++ b/recurse.c
|
||
|
@@ -408,6 +408,7 @@
|
||
|
*/
|
||
|
static int read_dir(DIRECTORY *directory)
|
||
|
{
|
||
|
+ errno = 0;
|
||
|
directory->entry = readdir(directory->dir);
|
||
|
|
||
|
if (directory->entry != NULL)
|
||
|
@@ -622,6 +623,7 @@
|
||
|
/* Check for wildcards */
|
||
|
settings->pattern = last_path(my_path);
|
||
|
|
||
|
+#if 0 /* Disable for Debian, as it suprises people. --liw */
|
||
|
if (contains_pattern(settings->pattern))
|
||
|
{
|
||
|
/* Strip last part of path */
|
||
|
@@ -637,6 +639,7 @@
|
||
|
}
|
||
|
}
|
||
|
else
|
||
|
+#endif
|
||
|
{
|
||
|
settings->pattern = NULL;
|
||
|
}
|