mrg
36407a9595
KNF.
1998-07-03 11:51:19 +00:00
mrg
d407e73999
clean up a bit of cruft.
1998-07-03 11:50:51 +00:00
mrg
ae7821a46c
KNF.
1998-07-03 11:49:50 +00:00
mrg
896a03fbba
KNF, and use MOUNT_FFS over "ffs"
1998-07-03 11:48:58 +00:00
mrg
b6134033e4
oops, lost this in previous change.
1998-07-03 04:10:43 +00:00
mrg
46b017828c
- remove register
...
- KNF
- ensure hostname has trailling nul.
- use initgroups/setgid/setuid rather than just setuid, and do this earlier.
- find "from:" and "subject:" as well.
- use strvis(3) rather than some local crufty code.
1998-07-03 02:27:58 +00:00
mrg
9cc2c90c42
backout previous; there was no buffer overflow anymore. while i'm here,
...
fix some KNF and stop account information leakage in the case of logging
in as a non-existant user (did not prompt for a password for call crypt(3)
before returning "Login incorrect.")
1998-07-02 07:46:45 +00:00
tv
d643a3384e
Allow PAGESIZE to be set via a -D option to cc (CLBYTES not a constant on
...
sparc; it is defined in terms of the kernel variable "nbpg")
1998-07-01 20:42:47 +00:00
tron
f5a8d207a9
Prevent buffer overflow on reverse lookup, fixes PR misc/5688 by
...
D'Arcy J.M. Cain.
1998-07-01 19:29:22 +00:00
tv
e3ab20461f
Add the ability to disable passive connects in ftpd.conf (breaks RFC1123,
...
STD3, but needed in some firewall environments).
1998-06-30 20:18:52 +00:00
christos
d7b7ede245
Merge in changes from OpenBSD.
1998-06-27 21:15:42 +00:00
msaitoh
10171df916
add "-s" flag (like telnetd and login)
1998-06-26 18:12:00 +00:00
msaitoh
a5471c1dd8
add "-s" flag (SecureID).
1998-06-26 17:41:38 +00:00
kleink
e62a515e87
GLOB_QUOTE is gone; per POSIX, backslash quoting of special characters being
...
enabled is the default behaviour.
1998-06-21 12:16:35 +00:00
kleink
fc5d36f8e4
GLOB_QUOTE is dead; per POSIX, backslash quoting of special characters being
...
enabled is the default behaviour.
1998-06-19 22:58:04 +00:00
mhitch
c01fadd882
Don't forget to update _rtld_objtail when _rtld_dlclose() removes the
...
current tail entry.
1998-06-16 03:24:13 +00:00
lukem
fc90756956
Implement a new manual page category ``SECURITY CONSIDERATIONS''
...
(suggested by mycroft)
1998-06-08 12:41:41 +00:00
lukem
9c9d43e6b5
support displaying the stderr output from a LIST or a conversion to
...
the user at the end of a transfer.
this generates a file in /tmp, so anonymous requires a
writable ~ftp/tmp, which you may not want to do (because it may
allow people to unwanted upload files).
XXX: a better method of storing the stderr output would be nice, but
is a lot more effort to implement. this feature can at least be
used temporarily whilst debugging why an ftp conversion doesn't
work.
1998-06-08 07:13:13 +00:00
mouse
7ccec6ac9f
Show/log the strerror(errno) string when getcwd fails
1998-06-03 13:21:42 +00:00
hubertf
dde092b47d
Fix some problems with failed getcwd commands, reported in PR bin/5531
...
by Saitoh Masanobu <msaitoh@spa.is.uec.ac.jp>.
1998-06-03 09:21:45 +00:00
kleink
76bc8071eb
Clear the error indicator after retrieval (xref. dlerror(3)).
1998-05-30 18:28:31 +00:00
tv
106fae1a3a
...and clear DESTDIR in fake Makefile.
1998-05-24 03:54:12 +00:00
frueauf
21fc3e02fd
Don't ignore compressed unformatted man pages and use $MKWHATIS where
...
makewhatis.sed should be used.
1998-05-23 14:26:05 +00:00
tv
044f139d81
Use a "smart" lookup of makewhatis.sed.
1998-05-23 13:42:25 +00:00
msaitoh
06db2e9ee4
fix typo
1998-05-22 19:00:40 +00:00
hubertf
80a44df7c2
use correct getopt parameters, as per PR 5480 from Konrad Schroder <perseant@hhhh.org>
1998-05-22 02:21:00 +00:00
christos
f7ab9656fe
From chopps: be more picky about handling incorrectly formatted man pages.
...
Look for .Sh NAME; this breaks internationalized man pages. Someone could
put NLS support for it.
1998-05-21 23:21:48 +00:00
tv
2a0a609947
Don't try to get at ${DESTDIR} inside /usr/libexec/makewhatis; instead,
...
supply ${DESTDIR} as part of the command line argument in
src/share/man/Makefile, and use that modified $MANPATH to find
makewhatis.sed.
1998-05-21 11:40:11 +00:00
tv
b05a04267a
In case NOPICINSTALL is set, get -lc_pic from src/lib/libc/(objdirname).
1998-05-21 00:31:05 +00:00
lukem
77c4126096
use TM_YEAR_BASE (not 1900) - not that we expect it to change in any case :)
1998-05-21 00:09:32 +00:00
pk
294ed94908
Optimize symbol/string table access slightly by precomputing their
...
locations at load time. These values don't change once the object is loaded.
1998-05-19 12:15:38 +00:00
mrg
638411ef77
- don't leak account information (from christoph badura)
...
- no need to copy remotehost to line, just use remotehost in both
cases. fixes problem reported by repsec (see http://www.repsec.com/ )
1998-05-18 12:41:30 +00:00
thorpej
dd26162d11
Need <dlfcn.h> for Dl_info.
1998-05-14 01:55:28 +00:00
pk
d123bc84d4
Implement `dladdr()': find nearest symbol given an address.
1998-05-12 21:22:28 +00:00
pk
79bd77e1cc
Add `dladdr()' rtld entry point.
1998-05-12 21:21:21 +00:00
mhitch
e8c1659e9a
${DESTDIR} isn't needed - which isn't what the example in
...
/usr/share/mk/bsd.README seems to indicate.
1998-05-11 19:30:15 +00:00
fair
42aff08cb4
fix a bad .Xr
1998-04-29 19:25:25 +00:00
fair
5ce6614a4f
fix bad .Xr references
1998-04-29 08:33:11 +00:00
fair
dc026e0515
Change occurrences of "UNIX" to .Ux or .At as appropriate.
1998-04-28 06:00:51 +00:00
hubertf
930085f3c8
Add note on how to re-read this file (via PR 5341 by David Brownlee)
1998-04-22 08:11:10 +00:00
ross
8c7509c9ef
Reference ttys(5). (David Brownlee, PR #5339 )
1998-04-22 04:54:19 +00:00
lukem
6c4ddbba34
fix disabling of optimization on powerpc (set COPTS *after* <bsd.prog.mk>...)
1998-04-13 14:24:02 +00:00
fair
c90e2a4b2e
getNAME now handles [nt]roff comments (.\") correctly.
1998-04-10 22:32:45 +00:00
fair
3b04f8e0b1
Add .Xr ttyaction 3 per PR#4647
1998-04-10 09:31:55 +00:00
mhitch
f00af7b07c
Oops - when assembled with PIC, the jal gets expanded, so what used to be
...
in the branch delay slot was no longer getting executed at the proper time.
This resulted in a corrupt ps_strings pointer and caused programs trying to
use ps_strings to fail.
1998-04-09 04:45:08 +00:00
tv
482063559a
.y.c <sys.mk> rule fixes. Don't create a y.tab.h file unless asked for,
...
and use smarter creation of the header file.
1998-04-09 00:32:31 +00:00
fvdl
98712f00f0
If a good matching shared library is found, don't look in the next
...
directories. This is compatible with the SunOS behaviour. Also,
it fixes a problem where it was not possible for some 3rd party
package to have a library with the same name as a library already
in the system, and a lower version number. The highest version
would always be picked. This particular problem shows up with Mozilla,
which has a libutil.so.1.0
1998-04-04 01:00:29 +00:00
kleink
60cfe27506
Need <time.h> for various definitions, so just include it in this one place.
1998-04-01 15:05:10 +00:00
kleink
ce38478eb8
No need to include <sys/tty.h>.
1998-04-01 15:02:47 +00:00
kleink
f604523fb6
Need <time.h> for localtime() prototype.
1998-04-01 14:51:54 +00:00
kleink
bcc2f4cc93
Need <time.h> for time() prototype, and rearrange inclusion order a bit.
1998-04-01 14:47:01 +00:00
kleink
2efb2aaff6
Need <time.h> for ctime() prototype.
1998-04-01 14:39:56 +00:00
kleink
d868740f80
Need <time.h> for time() and ctime() prototypes.
1998-04-01 14:37:45 +00:00
kleink
cd7d0f550d
Need <time.h> for time() prototype.
1998-04-01 14:35:23 +00:00
kleink
223dbe1123
Need <time.h> for time(), localtime() and ctime() prototypes.
1998-04-01 14:31:59 +00:00
kleink
d1cd3dd49b
Need <time.h> for time() prototype.
1998-04-01 14:29:08 +00:00
mrg
984d89b066
use static int, not just static
1998-03-30 01:53:45 +00:00
mrg
d5088f6ab0
remove register.
1998-03-30 01:52:02 +00:00
mrg
2ccff62399
break if ".PP" also
1998-03-30 01:45:27 +00:00
cjs
9308c6c2e1
Add uugetty manpage link.
1998-03-28 06:10:32 +00:00
cgd
c0ac8bae67
GC alpha's ECOFF_TOOLCHAIN make variable, and related bits. Nobody
...
should be using an ECOFF toolchain on NetBSD/alpha any more.
1998-03-28 00:50:41 +00:00
mycroft
ab8a4c5234
Allow a non-RTLD_GLOBAL object to refer to symbols in itself.
1998-03-26 23:33:12 +00:00
thorpej
c506364411
Make this work with objdirs.
1998-03-26 07:36:30 +00:00
mhitch
082edecc20
Add support for mips.
1998-03-25 04:12:32 +00:00
tron
7c26d20c65
Add support for "${DESTDIR}".
1998-03-21 23:46:00 +00:00
pk
d47d43b956
Use file size from fstat(2) to map the hints file, instead of fiddling
...
with incremental mmap()'s. Squashes a bug which caused only the first
page of the hints file to unmapped.
1998-03-18 23:21:46 +00:00
pk
5ea8bb6d05
Implement RTLD_GLOBAL dlopen(3) flag.
...
Rename internal flags to avoid <dlfcn.h> name space collisions.
1998-03-15 23:10:21 +00:00
pk
b5f4c3ad5e
Check for short hints file (noticed by Chuck Silvers).
1998-03-15 21:24:27 +00:00
mycroft
28ad88290d
Remove spurious extra newline.
1998-03-03 00:36:24 +00:00
fvdl
e5bc90f40c
Merge with Lite2 + local changes
1998-03-01 02:20:01 +00:00
enami
86053c56a1
Cosmetic changes; fix more indentation (just added/deleted white spaces).
1998-02-28 13:29:03 +00:00
cjs
39926e4051
Send back an error message rather than dumping core when an invalid
...
username is entered. The latter, while effective, does not appear to
me to be an appropriate response.
1998-02-23 23:10:34 +00:00
jonathan
5e0e8cec39
More table-driven changes for different toolchains:
...
* new bsd.own.mk variable OBJECT_FMT with values "a.out" or "ELF".
* use OBJECT_FMT in Makefile tests that depend on toolchain.
* Add new bsd.own.mk variable NOSHLIB that, if set indicates a given
port doesnt yet do shared libraries. Set on powerpc.
* Document new feature-test variables in src/share/mk/bsd.README.
Tested on i386, mips, fakedup Alpha environment.
1998-02-23 10:09:31 +00:00
mycroft
4462053ab3
Fill in missing (default) mmap(2) flags.
1998-02-20 09:27:18 +00:00
perry
ba7b5f16ff
add -DPMAP_NEW if PMAP_NEW is on in mk.conf
1998-02-18 03:54:58 +00:00
pk
9084f293a7
Print a warning message if we detect that a "copy symbol" has changed
...
size in a shared library. Also, always use our expected size to copy
the item in, on the assumption that doing so generally minimizes the
damage (maybe it's better to just bail out?).
1998-02-17 23:07:33 +00:00
tron
49a4ba96f8
Make login prompt handling smarter, fixed PR bin/3255.
1998-02-13 23:15:16 +00:00
cjs
0fb549738e
Disable RNFR command for guest users so that they can't rename (and thus
...
also overwrite!) files.
1998-02-13 17:15:53 +00:00
mrg
b788ab7665
use sysctl for "kern.boottime" over kvm_read
1998-02-12 05:27:51 +00:00
bad
8a0d3fa9d7
Make this compile with -DUVM.
1998-02-11 17:27:37 +00:00
mrg
279ce528ce
add -DUVM to CPPFLAGS if defined(UVM)
1998-02-09 06:25:15 +00:00
lukem
906cb46ddb
cons up a makefile to install whatis.db with FILES=
1998-02-09 01:34:57 +00:00
mrg
f1d37094a5
make this work in the -DUVM case.
1998-02-07 12:04:37 +00:00
perry
6982982f8d
macroize BSD, NetBSD, FreeBSD and misc cleanup
1998-02-06 05:39:31 +00:00
perry
3ed4e7c6e3
add <unistd.h> to fix compiler warning
1998-02-03 03:24:24 +00:00
perry
860ad7488c
change <strings.h> to <string.h> to fix compiler warning
1998-02-03 03:20:11 +00:00
christos
23d3afbb8c
- #endif foo -> #endif /* foo */
...
- #if __STDC__ -> #ifdef __STDC__
- Don't allow expired accounts to login.
1998-02-01 14:10:22 +00:00
mrg
c3d9fda2c3
expand on the checkportcmd option.
1998-01-23 00:56:55 +00:00
lukem
61eb3f4761
* store st_dev of filesystem not quotafile. (inspired by an openbsd commitmsg)
...
* minor KNF, fix typos, use strchr() not index()
* check return value of malloc() and use strdup() where appropriate
1998-01-21 11:37:16 +00:00
christos
36e588a416
PR/4848: Kimmo Suominen: rpc_rusersd tries to open remote host as display
...
- change LOG_ERR to LOG_DEBUG because xdisplay access fails most
of the time.
- only try the display code if the ut_host field has a :
1998-01-20 17:39:14 +00:00
perry
77fc921931
get rid of secretmail residue -- suggested in pr-4568 from Carl Shapiro
1998-01-10 00:37:34 +00:00
perry
3fe138c146
RCS Id Police.
1998-01-09 08:03:16 +00:00
lukem
69c37cf0b7
fix indenting of a block
1998-01-08 03:30:49 +00:00
perry
2ec6474b31
RCSID Police.
1998-01-06 04:44:59 +00:00
cgd
10cc9f3b70
RCS Id police
1998-01-05 22:00:34 +00:00
lukem
1e03f65c0d
clarify /etc/ftpwelcome is shown *before* login
1997-12-31 02:43:54 +00:00
lukem
53f6552a12
set $HOME to "/" for guest or chroot users, pw->pw_dir otherwise.
...
fixes expansion of `~/...' pathnames.
1997-12-28 04:28:17 +00:00
christos
04691c5e33
Overhaul:
...
- Use fgetln instead of fgets and keep track of line limits.
- Use dynamically allocated buffers instead of fixed length ones.
- Use err/warn
- Don't re-scan strings needlessly.
- Handle extensions properly for page names that contain more than
one period printing:
resolv.conf (5) - resolver configuration file
instead of:
resolv.conf (conf.5) - resolver configuration file
This fixes PR/4738: "Coredump in getNAME" as a side effect.
This program is a hack; it depends on the ``standard format'' of a man page
and can get easily confused. At least now it will not core-dump...
1997-12-22 20:02:33 +00:00
mikel
8e4d4f760b
edit a bit, and bewail inability to handle compressed manpages
1997-12-04 06:41:42 +00:00
lukem
9f8ad690b4
use 300 seconds (as per login(1)) for initial timeout, rather than 900 secs
1997-11-28 23:42:36 +00:00