Your message dated Sun, 23 Mar 2008 16:47:09 +0100
with message-id <[EMAIL PROTECTED]>
and subject line Re: #229443 sometimes you cannot exit ncftp
has caused the Debian Bug report #229443,
regarding sometimes you cannot exit ncftp
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
229443: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=229443
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: ncftp
Version: 2:3.1.6-1
Severity: normal

Hello,
Sometimes, when I want to leave ncftp, I cannot do it.
I cannot repeat it at the moment.
The behaviour is that ncftp repeats its prompt of saving bookmarks
"Save? (yes/no)". Whatever I type (y, yes, n, no, ctrl-c, other) - it
doesn't work.
I suppose it is something with buffers, because at those moments I press
something strange on keyboard while ncftp is it in strange state and
after that cannot read input properly.
I've looked at the code (cmds.c, SaveUnsavedBookmark):
               for (;;) {
                        (void) printf("Save? (yes/no) ");
                        (void) memset(ans, 0, sizeof(ans));
                        fflush(stdin);
                        if (fgets(ans, sizeof(ans) - 1, stdin) == NULL) {
                                c = 'n';
                                break;
                        }
                        c = ans[0];
                        if ((c == 'n') || (c == 'y'))
                                break;
                        if (c == 'N') {
                                c = 'n';
                                break;
                        } else if (c == 'Y') {
                                c = 'y';
                                break;
                        }
                }

I assume that I cannot leave the infinite loop above, so:
1. according to many manuals, fflush(stdin) is undefined on ansi - does
it work under linux?
2. flushing standard input is not portable - could it be replaced with
sth else? fpurge?
3. maybe another case (default), which should leave bookmarks untouched?

I am sorry that I cannot remember if endlessly displayed text is only
"Save? (yes/no)" or all those "You have not saved ...." (which could
change my conclusion into crap).

My prefs:
anon-password=NcFTP@
auto-ascii=|.txt|.asc|.html|.htm|.css|.xml|.ini|.sh|.pl|.hqx|.cfg|.c|.h|.cpp|.hpp|.bat|.m3u|.pls|
auto-resume=no
autosave-bookmark-changes=no
confirm-close=yes
connect-timeout=20
control-timeout=135
logsize=10240
one-time-messages-seen=
pager=more
passive=on
progress-meter=2 (statbar)
redial-delay=20
save-passwords=ask
show-status-in-xterm-titlebar=no
so-bufsize=0 (use system default)
xfer-timeout=3600
yes-i-know-about-NcFTPd=no


-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux dom 2.4.22-ck2 #3 wto gru 2 20:03:16 CET 2003 i686
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (ignored: LC_ALL set to pl_PL)

Versions of packages ncftp depends on:
ii  libc6                     2.3.2.ds1-11   GNU C Library: Shared libraries an
ii  libncurses5               5.3.20030719-5 Shared libraries for terminal hand

-- no debconf information



--- End Message ---
--- Begin Message ---
Am Sonntag, den 23.03.2008, 16:38 +0100 schrieb Noèl Köthe:

> can you reproduce your reported problem http://bugs.debian.org/229443
> with ncftp 3.2.1 ?

Bug reporter is not available anymore.:(

-- 
Noèl Köthe <noel debian.org>
Debian GNU/Linux, www.debian.org

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


--- End Message ---

Reply via email to