Hi,
Here is a patch to skip unreadable files while we launch gtags from
commandline... (actually, gtags stop parsing when he found a dead-symlink).
Regards,
Mathieu Virbel
diff -u global-5.2.save/libutil/find.c global-5.2/libutil/find.c
--- global-5.2.save/libutil/find.c Mon Oct 23 10:32:32 2006
+++ global-5.2/libutil/find.c Mon Oct 23 10:46:56 2006
@@ -504,6 +504,11 @@
strlimcpy(path, makepath(dir, unit, NULL), sizeof(path));
if (skipthisfile(path))
continue;
+
+ /* skip unreadable file */
+ if (!test("r",path))
+ continue;
+
/*
* GLOBAL cannot treat path which includes blanks.
* It will be improved in the future.
@@ -588,6 +593,8 @@
/* skip empty line. */
continue;
}
+ if (!test("r", path))
+ continue;
if (!test("f", path)) {
if (!qflag) {
if (test("d", path))
_______________________________________________
Bug-global mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-global