Commit Graph

101 Commits

Author SHA1 Message Date
peter 94124fb58c * fix strdup() with conditional nlines++
* no need to call strdup() in the return pointer of ftp_base
* simplify release version fixup and add support for -current

Reviewed by garbled.
2005-01-18 18:07:21 +00:00
peter 51cfa88873 Add a message to the catalog. 2005-01-12 17:53:45 +00:00
peter 273a7df369 Use bailout() to exit (restores the screen).
Close the message catalog in bailout.
2005-01-12 17:47:07 +00:00
peter 138a7b7812 s/select/poll/ 2005-01-12 17:41:56 +00:00
peter cc5f6766b3 ANSIfy & KNF. No functional changes. 2005-01-12 17:38:40 +00:00
peter c6a8ff8f46 Open the message catalog before calling parse_config, we might need it there.
parse_config: Check return values, simplify some code, realloc with correct
size, remove a redundant malloc, initialize searchpaths to NULL.
2005-01-12 00:05:20 +00:00
peter 643d5451e5 de-__P 2005-01-11 23:11:05 +00:00
peter 16da96235b Fix some typos. 2005-01-11 23:07:12 +00:00
peter fba8313e60 If a description is too long in a form, then show which one it is. 2005-01-11 22:51:26 +00:00
dsl 3cca093e74 Add (unsigned char) cast to ctype functions 2004-10-30 15:51:20 +00:00
simonb 9bc855a931 s/the the/the/ (only in sources that aren't regularly imported from
elsewhere).
2004-04-23 02:58:27 +00:00
wiz 136d7943d4 When adding an IPv4 host, one can not leave the IPv4-address field if
one has entered invalid data (like an incomplete IP).
Their was no feedback about this, though.
Apply a patch from Peter Postma that gives feedback in this case.
Closes problem noted when re-testing PR 16937.
2004-04-05 10:25:12 +00:00
garbled 59b0a9509c Move the "Form Page:" status over slightly. Suggested by Peter Postma 2004-03-24 22:03:17 +00:00
garbled 0c0dadc4d9 Apply patch from PR 24832 to allow line lengths longer than 80 chars in
sushi forms.  By Peter Postma.
2004-03-24 19:14:07 +00:00
garbled 732560ccbd Add patches from Peter Postma in PR 24755 to cleanup output in sushi:
* hide the cursor everywhere except in forms (looks nicer)
        * fix repaint with lists (from TODO)
        * fix the form page (removes XXX)
        * force a pos_form_cursor() after every keypress in the forms
          to ensure that the selected field got the focus.
        * tweak the status message a bit.
2004-03-24 19:10:58 +00:00
jdc 4c3bfcd943 Change the "exact match" parameter of set_field_type() to TRUE, to match
the change to match_enum() in libform (src/lib/libform/type_enum.c:r1.8).
From Brett Lymn.
Fixes PR bin/24604.
2004-03-22 19:03:19 +00:00
garbled c5fb5d0d44 Apply patch from Peter Postma to fix the handling of nfsd_flags in rc.conf. 2004-03-10 19:03:16 +00:00
garbled 8a2d792237 Apply revised patch from bin/24647 by Peter Postma:
Adds a confirmation check before processing the data you have entered, or
sushi has entered for you on a form.
2004-03-09 20:26:24 +00:00
garbled 0f7c881113 Apply patch from Peter Postma on tech-userlevel:
I've made a patch for sushi(8) for setting environment variables at startup.
This might be useful when a user needs a different terminal type.
The patch also fixes the searchpaths when the config file does not
contain any.
2004-03-09 20:16:16 +00:00
garbled 0e2f4ba6c4 Apply patches from bin/24642 by Peter Postma to fix the "no help is
available" message from sushi's help system.
2004-03-09 19:22:22 +00:00
garbled 1c06ce13b0 Apply patch from PR bin/24559 to fix incomplete lines in some forms.
From Peter Postma
2004-03-09 19:10:20 +00:00
grant cacf2d0f45 s/netbsd.org/NetBSD.org/i 2003-11-12 13:31:07 +00:00
fvdl 03de13db6e Fix a few cases where NULL was used as integral value. 2003-10-21 02:55:43 +00:00
itojun 33c55cb2ac make use of realloc(3) safe 2003-10-16 06:19:11 +00:00
itojun 6ba71df691 use bounded string op 2003-07-16 06:40:47 +00:00
itojun 7087f39f8d use strlcpy/cat 2003-06-13 07:26:41 +00:00
wiz d75f1336b3 Uppercase URL. 2003-05-14 14:30:59 +00:00
wiz c57dfd43a9 A script, not an script. 2003-03-31 08:23:32 +00:00
perry 338db96096 recieving->receiving, escript->script, fixes PR misc/20746 (Igor Sobrado) 2003-03-31 00:45:39 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
grant 806593a806 The correct capitalisation of 'NetBSD.org' is (you
guessed it) 'NetBSD.org'.

some mdoc fixes.
2003-02-14 16:11:34 +00:00
perry 8a49ec08e4 "Utilize" has exactly the same meaning as "use," but it is more
difficult to read and understand. Most manuals of English style
therefore say that you should use "use".
2003-02-04 23:07:28 +00:00
simonb 276fd1665c The Double-Semi-Colon Police. 2003-01-20 05:29:53 +00:00
jdc 99d5546aa4 Add a call to use_default_colors(). 2002-11-25 09:11:35 +00:00
mycroft aae6c28cf9 null commit 2002-09-23 12:44:34 +00:00
itojun f46e921837 poll.h, not sys/poll.h 2002-09-23 03:36:03 +00:00
lukem 805b400ba7 use NETBSDSRCDIR as appropriate 2002-09-19 12:08:37 +00:00
mycroft 01d349833e select() -> poll()
Also, change the way console input is passed to the subprocess -- instead of
echoing it in sushi, instead set the pty to cooked mode and have it do any
echoing.  This will work better if we have scripts that accept input (sometimes
we don't want it visible; e.g. if it's a password) and also has the side effect
of allowing a command to be interrupted with ^C.
2002-09-19 00:45:47 +00:00
pooka a1c35451a3 move curses initialization higher in main to prevent the curses
error function from being called before curses is initialized
2002-08-13 18:21:25 +00:00
pooka d19d334a86 don't report curses initialization failure using curses 2002-08-13 18:16:31 +00:00
blymn d8747fc408 Incorrect form commands were used for the left and right char handlers. 2002-08-07 11:03:45 +00:00
jdolecek fceac2db48 After showing help, touchwin/wrefresh the stdscr, do not try to do
that for form subwindow, which may be NULL (or is always, even?).

This fixes SIGSEGV when one goes to
Network related configuration -> Modify the hosts file -> Delete host entries
and presses F1 (Help).
2002-07-26 08:43:26 +00:00
jdolecek d5d1e7aa6c fgetln() does NOT return NUL-terminated string
This fixes bin/13624 by Jun-ichiro itojun Hagino
2002-07-26 07:59:33 +00:00
jdolecek 973b4b497c form_appenditem(): make sure fte->list is initialized
process_{pre,}form(): g/c unnecessary malloc, plug memory leak
gen_list(): only check ftp->list after realloc()
handle_{pre,}form(): allocate F[] via calloc(3), so that the memory is
     properly zeroed
2002-07-25 12:42:39 +00:00
jdolecek d675751f34 g/c some pointless malloc()s 2002-07-25 12:39:26 +00:00
jdolecek 5ff2a932b1 launch_subwin(): make sure string 'command' is initialized; malloc may not return
zeroed memory. This should fix the SIGSEGV part of bin/17718
by Grant Beattie.
2002-07-25 12:34:09 +00:00
jdolecek 70accc48c9 add XXX comment for piece of very strange code; I don't currently
want to investigate more
2002-07-25 12:20:56 +00:00
jdolecek ee3d448cbd Array retrurned by form_fields() is NOT NULL-terminated - use field_count()
to get amount of fields on the form instead.
This fixes a SIGSEGV problem I encountered, and possibly also the crash part
of bin/17718 by Grant Beattie.
2002-07-25 09:38:31 +00:00
christos 93756e61ad XXX: this code needs a lot more cleanup... There is no clear malloc/free
policy and the data dependent initialization is very fragile. I.e.
     the code assumes because the data entry is of type foo, it has
     initialized certain fields and others not.
- make sure list is not NULL before you use it.
- don't realloc on every loop iteration!
- don't increment i when there are short lines; leads to uninitialized
  list[i] entries [fixes bills' core-dump, hi bill!]
2002-04-02 18:59:54 +00:00
christos 3afdbb7d94 XXX: this code has a lot of bugs and needs further cleanup.
- don't allocate:
	char *p = malloc(len * sizeof(char *))
  when you mean:
	char *p = malloc(len)
- eliminate duplicated code by creating functions and try not to wrap
- use mvwinnstr instead of mvwinstr
2002-04-02 18:57:01 +00:00