[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Corrections for 20021019
From: |
Thomas Dickey |
Subject: |
Re: Corrections for 20021019 |
Date: |
Sat, 26 Oct 2002 16:48:29 -0400 |
User-agent: |
Mutt/1.2.5i |
On Mon, Oct 21, 2002 at 06:47:29AM +0200, Philippe Blain wrote:
> ----------------------------------------------------------------------------
> File : ncurses/base/lib_screen.c
>
> Function : scr_dump(const char *file)
>
> If file does not exist, _nc_access fails and return -1, preventing from
> dumping to a new file.
> ..................
> if (_nc_access(file, W_OK) < 0 || (fp = fopen(file, "wb")) == 0) {
> returnCode(ERR);
> ..................
>
> ----------------------------------------------------------------------------
This one works as expected. If the file doesn't exist, ncurses checks if
the directory is writable, and the file is written.
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net