print-cause-of-bosserver-whining-20020821
authorLove Hörnquist-Åstrand <lha@stacken.kth.se>
Wed, 21 Aug 2002 20:33:15 +0000 (20:33 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 21 Aug 2002 20:33:15 +0000 (20:33 +0000)
instead of a vague error be slightly more useful

src/bozo/bosoprocs.c

index 9ab57ff..63a4b33 100644 (file)
@@ -1270,6 +1270,13 @@ int DirAccessOK ()
     for (i=0; i<bozo_nbosEntryStats; i++) {
        struct bozo_bosEntryStats *e = &bozo_bosEntryStats[i];
        if (!StatEachEntry (e)) {
+           bozo_Log("unhappy with %s which is a %s that should "
+                    "have at least rights %o, at most rights %o %s\n",
+                    e->path, 
+                    e->dir ? "dir" : "file", 
+                    e->reqPerm, 
+                    e->proPerm, 
+                    e->rootOwner ? ", owned by root" : "");
            result = 0;
            break;
        }