bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] GNUBg Win32 Index


From: Nardy Pillards
Subject: Re: [Bug-gnubg] GNUBg Win32 Index
Date: Sat, 25 Jan 2003 01:17:55 +0100

----- Original Message -----
From: "Nardy Pillards" <address@hidden>
To: "Joern Thyssen" <address@hidden>; <address@hidden>
Cc: <address@hidden>
Sent: Friday, January 24, 2003 8:28 PM
Subject: Re: [Bug-gnubg] GNUBg Win32 Index


> From: "Joern Thyssen" <address@hidden>
> Sent: Friday, January 24, 2003 2:21 PM
>
>
> ( snip )
>
> > Nardy or Øystein, assuming you can reproduce this problem on your system
> > as well, can you insert a few debug outputs:
> >
> >     sprintf( sz, "%s/.gnubgpr", szHomeDirectory );
> >
> > #ifdef WIN32
> >     outputf ( "Unlink file '%s'\n", sz );
> >     /* experiment */
> >     if ( unlink ( sz ) && errno != ENOENT ) {
> >        int  = errno;
> >       /* do not complain if file is not found */
> >       outputerr ( sz );
> >       outputf ( "error encountered: %d\n", i );
> >       free ( pchOut );
> >       return -1;
> >     }
> > #endif
> >
> >     outputf ( "rename '%s' to '%s'\n", pchOut, sz );
> >     if( rename( pchOut, sz ) ) {
> >        int i = errno;
> >         outputerr( sz );
> >         outputf ( "Error encountered: %d\n", i );
> >         free( pchOut );
> >         return -1;
> >     }
> >
> >     free( pchOut );
> >     return 0;
> > }
> >
> > Jørn
>
> ./.gnubgpr: Permission denied
> Unlink file './.gnubgpr'
> error encountered: 13
>
> (and the temporary .gnubgpr xxyyzz is created with corrected content, but
> not renamed to .gnubgpr)
>
> Nardy

The 'rename' is the problem.
Windows won't let you rename a file without a filename.
Win file = filename.fileextension
and the .gnupr files, don't have a filename

Nardy





reply via email to

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