[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [leafnode-list] "cannot obtain group list" error running
On Tue, Sep 10, 2002 at 04:00:54PM -0500, William Grinolds wrote:
> >Then read /tmp/texpire.trace and look for chdir("/var/spool/news") and
> >failures in the following lines and report back.
> chdir("lost+found") = -1 EACCES (Permission denied)
> Why does "texpire" need access to "lost+found"?
oops. Bug. texpire builds the list of groups to expire by going
recursively through the spool directory (ignoring directories
with a period in the name).
The problem is in grouplist.c in this line:
if (chdir(de->d_name)) goto bail;
As soon as cannot access a directory ii simply exits instead of
ignoring it.
Try this 100% untested patch:
--- grouplist.c.orig Wed Sep 11 10:36:59 2002
+++ grouplist.c Wed Sep 11 10:52:27 2002
@@ -60,7 +60,10 @@
(void)mastr_vcat(p, prefix, ".", de->d_name, NULL);
else
(void)mastr_cpy(p, de->d_name);
- if (chdir(de->d_name)) goto bail;
+ if (chdir(de->d_name)) {
+ mastr_delete(p);
+ continue;
+ }
if (myscandir(l, mastr_str(p))) goto bail;
if (chdir("..")) goto bail;
mastr_delete(p);
> permissions to drwxrwx---, and away it went. Works fine now. Curious,
> though - it removed the "lost+found" folder - would that cause a problem
It thought "lost+found" was an empty group...
> in the future?
Might add some additional problems in case of filesystem damage.
Not too sure, though.
Cheers,
Jo:rg
--
---=== Encrypted mail welcome. Key-ID: 1024D/2B693EBF ===---
Fortune cookie of the day:
It's better to burn out than it is to rust.
--
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list