agc
b35288ab0c
Add a function is_local_user(), and use it in moduser(), to check that
...
the user is not found through NIS.
Completes fix of PR 17849, from Grant Beattie (grant@netbsd.org ).
Also, don't cast return type of pw_abort(3) to void, as it already is void.
2002-08-06 11:56:26 +00:00
agc
569d79bd84
Remove the /etc/ptmp file via pw_abort(3) if the pw_mkdb(3) call fails.
...
Addresses part of PR 17849 from Grant Beattie, grant@netbsd.org .
2002-08-06 09:03:55 +00:00
hubertf
ac31af18a9
20020804:
...
* pkg_admin pmatch
* pkg_add increases resource limits
No need to bump PKGTOOLS_REQD as these are not used anywhere right now!
2002-08-04 21:49:23 +00:00
hubertf
ed4b7caed9
Try increasing number of max. open files as high as possible.
...
Prevents annoying errors when installing biggies like KDE.
2002-08-04 21:47:24 +00:00
hubertf
cebf43ab6e
Add 'pmatch' keyword: pkg_admin pmatch pattern pkg
...
Will return true if 'pkg' matches 'pattern', false else.
Provides a command line interface to the pmatch() C function
to be used from shell scripts etc.
2002-08-04 20:50:55 +00:00
hubertf
c2c6f0bc61
Don't warn about PKG_PATH being set when -e is given
2002-08-04 19:43:08 +00:00
itojun
4fd217fda9
o Instead of passing "*system*" as the fname to process_crontab()
...
for the system crontab file, pass a NULL pointer instead. This
prevents someone from creating a "*system*" file in the tabs directory
that acts as an alternate root crontab.
from openbsd
2002-08-03 02:03:00 +00:00
seb
46495173b2
Fix FTP_CMD for Solaris: something went wrong when it was added.
...
Approved by wiz.
2002-08-02 17:04:55 +00:00
christos
c9bffd0130
fix argument order.
2002-08-02 14:06:07 +00:00
simonb
8cd68a2ff9
Setting BINMODE=555 is redundant, as is setting BIN{OWN,GRP} of we're
...
using the default BINMODE.
2002-08-02 03:58:09 +00:00
christos
4be5fa5155
no need to include utmp everywhere.
...
add utmpx support
2002-08-02 02:52:07 +00:00
christos
bdb7464e61
oops reversed argument order.
2002-08-02 02:49:27 +00:00
christos
1bf7077704
welcome to the 20th century; use logwtmp{,x}; don't write to /var/adm/wtmp!
2002-08-02 02:47:58 +00:00
christos
b166b5b47b
use utmpx.
2002-08-02 02:38:15 +00:00
christos
d116a0bbd3
add utmpx support;
2002-08-02 02:23:49 +00:00
christos
3fd7285df0
Don't include utmp.h
2002-08-02 02:13:46 +00:00
itojun
2f26267778
ifa->ifa_addr is already pointer, no need for "&". from love
2002-08-01 23:47:46 +00:00
itojun
43cad3fc3f
use getifaddrs, not SIOCGIFCONF. should fix PR12578
2002-08-01 14:04:50 +00:00
itojun
f34e694103
correct in_cksum2 for odd length case
2002-08-01 09:03:50 +00:00
itojun
80964024a7
kill register variable decls, they are meaningless these days
2002-08-01 09:02:18 +00:00
itojun
518af973ec
u_short cleansing (use u_int16_t where appropriate).
...
XXX in_cksum2 does not seem correct in odd length case
2002-08-01 08:41:32 +00:00
itojun
a297f25294
avoid issues with typecast optimization (taking advantage of pointer aliasing),
...
which results in incorrect igmp checksum.
confirmed by taca@netbsd
2002-08-01 08:33:14 +00:00
itojun
896f6ff227
u_short cleansing (should be u_int16_t)
2002-08-01 03:40:34 +00:00
itojun
eb78c879ca
we shouldn't be shipping it, pim6[sd]d is not part of our base tree
2002-08-01 03:38:01 +00:00
wiz
a1b3869d7e
Unifdef __STDC__, ansify.
2002-08-01 00:17:31 +00:00
christos
8fece071ac
don't try to chmod if fchmod fails when restoring the original tty modes.
...
It could cause a symlink race. Just report the fchmod failure. Reported
by itojun, found in FreeBSD.
2002-07-31 14:59:10 +00:00
bouyer
27b46820fc
As discussed on tech-userlevel on Jun, 10 2002, make changes to not use
...
getpwnam() to get the user's passwd entry but read it from the passwd file
yppasswdd will later update. This allows a NetBSD machine to be master NIS
server without requiring the NIS accounts to exist (via /etc/master.passwd,
nis or other ways) on the local machine.
2002-07-31 14:41:56 +00:00
mrg
ecae279f88
fix usage() message for "-s" argument. ie, do *not* suggest "/usr/src"
...
as this causes "make distribution" to be run in /usr/src.
2002-07-31 06:43:17 +00:00
jschauma
a1e7e17b3e
Fix typo pointed out by haes at shrubbery dot net in PR bin/17396
...
"filter to be use" -> "filter to be used"
2002-07-31 01:49:48 +00:00
jschauma
a82bd2c37e
Synch with reality (PKG_TMDIR defaults to /var/tmp (first)).
...
Pointed out by franklin at elfie dot org in PR pkg/17760,
discussed on packages@, approved by hubertf.
2002-07-31 01:39:40 +00:00
wiz
fbbf252d3c
g711conv has been obsoleted in March (use pkgsrc/audio/sox).
...
Remove reference to it from SEE ALSO.
2002-07-29 01:08:29 +00:00
wiz
bdd6e709c2
i4btel -> isdntel.
2002-07-29 01:05:37 +00:00
wiz
1e24ad3422
Update some man page references (i4b -> isdn rename).
2002-07-29 01:05:21 +00:00
wiz
3e4ae32f21
Uppercase ISDN and some unrelated fixes to words ispell didn't like.
2002-07-29 00:54:44 +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
wiz
5db23d2c5d
enouth -> enough.
2002-07-26 01:00:39 +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
yamt
0eb57ea5a6
bump version to 20020723.
...
(PKG_PATH changes)
2002-07-23 09:23:35 +00:00
grant
eda9e509bb
sweep of errx/warnx, remove unnecessary trailing \n
2002-07-20 08:40:16 +00:00
grant
6742cb1812
sweep of errx/warnx, remove unnecessary trailing \n
2002-07-20 08:36:17 +00:00
yamt
b9911a030d
#if 0 out unused functions.
2002-07-20 05:40:55 +00:00
yamt
c819f95798
show_file: don't append '\n' if fopen failed.
2002-07-20 04:59:47 +00:00
yamt
c4ca16e864
show_file: add an extra '\n' unless file ended with '\n'.
2002-07-19 19:18:26 +00:00
yamt
5eb02a32ce
- remove handling of PKG_ADD_BASE.
...
- don't search current directory if PKG_PATH is set.
- don't prefer local directories.
- constify and cleanup.
discussed on tech-pkg.
2002-07-19 19:04:33 +00:00
wiz
9a97e49a31
Fix a typo.
2002-07-19 10:12:49 +00:00