Re: smbclient 2.8.8 bugs
In a message of 16 Aug 2004 11:31:28 -0500 Received on Mon, 16 Aug 2004 18:32:15 +0200 John E. Malmberg <[EMAIL PROTECTED]> wrote to [EMAIL PROTECTED] >In article <[EMAIL PROTECTED]>, >COLLOT Jean-Yves <[EMAIL PROTECTED]> writes: >> Hi. >> >> Well, in this case, my opinion is that "bugs" is quite an over-reacting >> word. I would have said "unsatisfactory defaults", or "erroneous = >> message". > >A politically correct way of saying a bug? :-) > >> going to change "Control-D" with "Control-Z" in the message. > >If I get working actively on getting the current UNIX builds of SAMBA to work >on OpenVMS, I will again lobby the SAMBA team to fix their code, as they are >making the assumption that no one has changed the TERMINFO database. > >Unlike VMS, UNIX can change the character from Control-D to almost any >character that they want. > >You can even change the control characters for to work a lot like OpenVMS. I >do not know anyone that has actually done that. I routinely do. My tcsh works (almost) like EDT. Here's my piece of code in which I handle this on Unix: #include #ifdef __GNUC__ #define term_cc_ term_cc__ #endif int term_cc_( void ) { struct termio term; int status; if( (status = ioctl( 0, TCGETA, &term )) != 0 ) { perror( "term_cc" ); exit( status ); } return term.c_cc[VEOF]; } To be used like here: character*(*) function eofchar() C *** C ** C *** C *** Returns current EOF character. C *** C *** 19-OCT-1993 17:01:14.00 ML / IoA Cambridge C *** C ** C *** implicit none integer term_cc integer cc if( len(eofchar) .ge. 6 ) then cc = term_cc() if( cc.lt. 32 ) then eofchar = 'CTRL/'//char( cc + 64 ) else eofchar = char( cc ) end if else eofchar = '>err<' end if end And for chuckles: #ifdef CURSES #include #include #else #include #endif #include #include void eofexit_( void ) { char bp[1024], *escstr[1], Escstr[30], *term; escstr[0] = Escstr; term = getenv("TERM"); if( term != NULL && *term != '\0' && tgetent( bp, term ) != 0 ) { tputs( tgetstr( "mr", escstr ), 1, &putchar ); printf( " Exit " ); tputs( tgetstr( "me", escstr ), 1, &putchar ); } else { printf( "*Exit*" ); } printf( "\n" ); fflush( stdout ); } Michael -- Michael Lemke Sternwarte Bamberg, University of Erlangen-Nürnberg, Germany ([EMAIL PROTECTED]) PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING: http://www.catb.org/~esr/faqs/smart-questions.html
Re: smbclient 2.8.8 bugs
In article <[EMAIL PROTECTED]>, COLLOT Jean-Yves <[EMAIL PROTECTED]> writes: > Hi. > > Well, in this case, my opinion is that "bugs" is quite an over-reacting > word. I would have said "unsatisfactory defaults", or "erroneous = > message". A politically correct way of saying a bug? :-) > going to change "Control-D" with "Control-Z" in the message. If I get working actively on getting the current UNIX builds of SAMBA to work on OpenVMS, I will again lobby the SAMBA team to fix their code, as they are making the assumption that no one has changed the TERMINFO database. Unlike VMS, UNIX can change the character from Control-D to almost any character that they want. You can even change the control characters for to work a lot like OpenVMS. I do not know anyone that has actually done that. -John [EMAIL PROTECTED] Personal Opinion Only PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING: http://www.catb.org/~esr/faqs/smart-questions.html
RE : smbclient 2.8.8 bugs
Hi. Well, in this case, my opinion is that "bugs" is quite an over-reacting word. I would have said "unsatisfactory defaults", or "erroneous message". Anyway, you are perfectly right: smbclient was defaulted with a debug level of 2, which is bad. I am going to set it to 0. You are right for the "Control6D/Control-Z" stuff, too. As far as I tested, the Control-Z key is what the VMS smbclient is waiting for, and it works correctly when the message to be sent is terminated by Control-Z. So, I am going to change "Control-D" with "Control-Z" in the message. JY PS : more answers to come for your other messages. -Message d'origine- De : John E. Malmberg [mailto:[EMAIL PROTECTED] Envoyé : vendredi 13 août 2004 01:13 À : [EMAIL PROTECTED] Objet : smbclient 2.8.8 bugs Smbclient seems to be compiled with a noisy debug level. When using it to send a message, it is requesting that the message be terminated with a Control-D. For VMS that should be a Control-Z. The UNIX code is wrong in that it is hardcoded to state Control-D, when the actual end of file character is configurable in the TERMIFO/TERMCAP database. The UNIX version should be using a system call to determine what character to tell the user to use. Of course that would have to be handled still differently on OpenVMS, but then it would be likely putting a macro in the config.h file to make that system call return a control-Z. -John [EMAIL PROTECTED] Personal Opinion Only PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING: http://www.catb.org/~esr/faqs/smart-questions.html PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING: http://www.catb.org/~esr/faqs/smart-questions.html