Mail Archives: cygwin-developers/2000/04/13/15:26:21
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);
- Raw text -