bug-gnats
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: edit-pr changes the permission of the index file.html


From: Raquel Toribio
Subject: Re: edit-pr changes the permission of the index file.html
Date: Mon, 18 Jun 2001 19:22:40 +0200

Hi, I had the same problem and I fixed it (or at least it seems to be working now) adding
in gnats/internal.c, function write_index, line 111
+  chmod (path, 0664);
  
if (copy_file (workfile, path))
        punt (1, "%s: could not copy temporary index %s into %s: %s\n",
              program_name, workfile, path, strerror (errno));
 
      unlink (workfile);
    }
  /* Added by RT */
  chmod (path, 0664);
  xfree (path);
  xfree (workfile);
  unblock_signals ();
 
 
----- edit-pr changes the permission of the index file?
Milan Zamazal pdm@zamazal.org
Tue, 02 Jan 2001 23:57:23 +0100


>>>>> "OS" == Ole Streicher <ole.streicher@ebp.de> writes:

    OS> Hi!  I just installed Gnats-3.113 on my linux machine (Suse
    OS> 6.4), edited the configuration files and started with one new
    OS> category as a test.

    OS> The problem is now that after query-pr fails always after I used
    OS> edit-pr. I could track thius down and found out that edit-pr
    OS> changes the permissions of the index file to 600 (owner is
    OS> gnats), and query-pr is the unable to open this file.

Strange.  The bug appeared in CVS few days ago, but I wasn't able to
reproduce it with GNATS 3.113 nor can find any way how this could happen
in that version.

We have to diagnose the problem closer.  Does the following patch make
any difference?

--- /home/pdm/gnats/gnats-3.113.orig/gnats/internal.c.orig
+++ /home/pdm/gnats/gnats-3.113.orig/gnats/internal.c
@@ -135,6 +135,7 @@
   fputs (buf, fp);
 
   fclose (fp);
+  chmod (path, 0644);
   unblock_signals ();
 }

    OS> What is wrong with my setup?

I don't think it is anything wrong with your setup.

    OS> BTW, I feel a bit unlucky to post this to a "Bug" mailing
    OS> list. Is there anywhere something like "gnats-user"?

I don't know any user list (there is a development list
gnats-devel@sourceware.cygnus.com), but what you describe definitely
belongs to the bug list, IMHO. :-)

Regards,

Milan Zamazal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]