Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com Message-ID: <38F62D4D.B918E6A7@vinschen.de> Date: Thu, 13 Apr 2000 22:25:49 +0200 From: Corinna Vinschen Reply-To: cygwin-developers AT sourceware DOT cygnus DOT com X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.14 i686) X-Accept-Language: de, en MIME-Version: 1.0 To: cygwin-developers AT sourceware DOT cygnus DOT com Subject: Re: More setup changes References: <20000413012229 DOT A11346 AT cygnus DOT com> <38F59ED4 DOT B02E9392 AT vinschen DOT de> <20000413114030 DOT B12180 AT cygnus DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Chris Faylor wrote: > > On Thu, Apr 13, 2000 at 12:17:56PM +0200, Corinna Vinschen wrote: > >Don't know, why but there are still readonly files remaining > >after unpacking. As aforementioned no problem while > >unpacking but that is not what you've intended, right? > > That was the problem that I hoped to have fixed. If it isn't > fixed for you, please tell me why. > > cgf That's it. Seems to be a timing problem. If the chmod is done after all tar's are finished it's ok. Corinna --- setup.c 2000/04/13 16:56:35 1.12 +++ setup.c 2000/04/13 20:23:17 @@ -206,7 +206,6 @@ tarx (const char *dir, const char *fn, F if (*s != '/') *--s = '/'; s = files.array[files.index] = utodpath (s); - (void) chmod (s, 0777); } fprintf (logfp, "%s\n", s); @@ -774,6 +773,7 @@ create_uninstall (const char *wd, const fprintf (uninst, "rmdir \"%s\"\n", dpath); else { + (void) chmod (dpath, 0777); if (access (dpath, 6) != 0) fprintf (uninst, "attrib -r \"%s\"\n", dpath); fprintf (uninst, "del \"%s\"\n", dpath);