trivial follow-up
This commit is contained in:
parent
8244b13d4a
commit
55a9f8670e
|
@ -7,10 +7,10 @@
|
||||||
find/pred.c | 92 +++++++++++++++++++++++++++++++++-----------------
|
find/pred.c | 92 +++++++++++++++++++++++++++++++++-----------------
|
||||||
find/util.c | 89 +++++++++++++++++++++++++++++++++++++++---------
|
find/util.c | 89 +++++++++++++++++++++++++++++++++++++++---------
|
||||||
import-gnulib.config | 1 +
|
import-gnulib.config | 1 +
|
||||||
lib/dircallback.c | 35 ++++++++++++++++++-
|
lib/dircallback.c | 36 +++++++++++++++++++-
|
||||||
lib/dircallback.h | 5 ++-
|
lib/dircallback.h | 5 ++-
|
||||||
lib/listfile.c | 2 +-
|
lib/listfile.c | 2 +-
|
||||||
12 files changed, 292 insertions(+), 196 deletions(-)
|
12 files changed, 293 insertions(+), 196 deletions(-)
|
||||||
|
|
||||||
diff --git a/ChangeLog b/ChangeLog
|
diff --git a/ChangeLog b/ChangeLog
|
||||||
index 34552d5..f040627 100644
|
index 34552d5..f040627 100644
|
||||||
|
@ -871,10 +871,10 @@ index f2e8998..b1f0851 100644
|
||||||
stat-macros
|
stat-macros
|
||||||
stat-time
|
stat-time
|
||||||
diff --git a/lib/dircallback.c b/lib/dircallback.c
|
diff --git a/lib/dircallback.c b/lib/dircallback.c
|
||||||
index 5dbf3b3..72691ed 100644
|
index 5dbf3b3..f96fccc 100644
|
||||||
--- a/lib/dircallback.c
|
--- a/lib/dircallback.c
|
||||||
+++ b/lib/dircallback.c
|
+++ b/lib/dircallback.c
|
||||||
@@ -54,7 +54,40 @@
|
@@ -54,7 +54,41 @@
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -882,7 +882,8 @@ index 5dbf3b3..72691ed 100644
|
||||||
+run_in_dir (const struct saved_cwd *there,
|
+run_in_dir (const struct saved_cwd *there,
|
||||||
+ int (*callback)(void*), void *usercontext)
|
+ int (*callback)(void*), void *usercontext)
|
||||||
+{
|
+{
|
||||||
+ int err = -1, saved_errno;
|
+ int err = -1;
|
||||||
|
+ int saved_errno = 0;
|
||||||
+ struct saved_cwd here;
|
+ struct saved_cwd here;
|
||||||
+ if (0 == save_cwd (&here))
|
+ if (0 == save_cwd (&here))
|
||||||
+ {
|
+ {
|
||||||
|
|
Loading…
Reference in New Issue