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: Fri, 24 Jan 2003 20:28:45 +0100

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





reply via email to

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