sjg
03c533138a
We need to have set curdir before calling Dir_FindHereOrAbove().
...
We can call getcwd again if -C is used.
2010-01-04 17:05:25 +00:00
dsl
99db72360c
Remove some sign compare warnings.
2010-01-02 16:08:20 +00:00
christos
f550d323b5
don't repeat the word login twice (syslog prepends the program name login:)
2009-12-29 20:15:15 +00:00
christos
c56d2f766e
kill the space in address formatting to match what other daemons do.
2009-12-29 19:27:43 +00:00
christos
d74e5fa896
PR/42540: Ed Ravin: /usr/bin/login does not log normal logins, and does not
...
log ip addresses.
- Factor out the common code in login.c and login_pam.c into common.c
- Always log a login event
- Check passed in sockaddr against the one from getpeername(2).
2009-12-29 19:26:13 +00:00
tsutsui
ba6eca2794
Use %zu for size_t, not %zd.
2009-12-19 10:27:13 +00:00
hubertf
f092da9a2f
Conditionalize the yyinput/input() function definition the same way
...
as it's always been done in the prototype.
OK christos@
2009-12-15 22:46:04 +00:00
mrg
f4f977dbc5
make this actually build on mips64.
2009-12-15 04:06:43 +00:00
uebayasi
ad7af028ce
Fix typo in previous.
2009-12-14 17:16:12 +00:00
uebayasi
54fa447685
Merge from matt-nb5-mips64; adapt to vaddr_t / vsize_t format specifiers.
2009-12-14 14:29:09 +00:00
uebayasi
338fe7370e
Adjust size_t format specifiers for mips64e[bl].
2009-12-14 14:11:32 +00:00
uebayasi
fce6fcbb2c
Teach crunchide(1) that mips64e[bl] is 64-bit ELF.
2009-12-14 14:01:10 +00:00
christos
3ca6a849fc
use .ORDER to avoid race
2009-12-14 05:23:39 +00:00
dholland
10a5ee8495
Don't attempt to read or write ~/.lesshst if it's not a regular file
...
or a symlink to a regular file. Previously, symlinking to /dev/null
would cause less to trash /dev/null if run with sufficient privileges,
as seen in PR misc/42237.
While the official way to disable .lesshst is to set an environment
variable, that is problematic in some cases, such as single-user mode.
A safer way to prevent even an unpatched less from writing anything
out is to mkdir ~/.lesshst.
2009-12-14 03:58:27 +00:00
matt
82d396ea31
Merge from matt-nb5-mips64
2009-12-14 00:43:05 +00:00
matt
c31d577a8c
Merge from matt-nb5-mips64
...
Teach lint about mips64
2009-12-14 00:42:06 +00:00
mrg
118cb193d7
- adjust the logic for compat ldd: add an elf32_compat module and arrange
...
for mips64 to build this with MLIBDIR set to o32
- make mips64 ldd call elf32_compat_ldd as well
- make mips64 elf64 set MLIBDIR to 64
- don't need ld.elf_so's Makefile.ld32 files anymore (they are going away
soon anyway)
tested on amd64 and sparc64, and an earlier version tested on mips64.
2009-12-13 08:50:56 +00:00
uebayasi
afecdcdcbc
Use $GENCMD to generate misc.[ch]. Carefully quote strings.
2009-12-11 16:10:56 +00:00
plunky
75847ce3f8
accept uppercase hex digits when parsing a provided key
2009-12-10 18:57:31 +00:00
wiz
3d8b25a8ff
Fix problem of reporting wrong matches noted in PR 41945 by using a patch
...
provided by Robert Elz in that PR.
2009-12-08 13:49:08 +00:00
mbalmer
74f49bc48d
s/the the/the/
2009-12-08 09:46:01 +00:00
mbalmer
559e4d0905
make sense, s/the the/with the/
2009-12-08 09:45:15 +00:00
uebayasi
f5321e7bbf
Put back the dependency of dump.c agaist misc.h. This is needed because
...
dump.c includes misc.h but misc.h is generated on-the-fly.
Note that dump.c is out of the makeerrnos.sh -> misc.[ch] generation rule
now. This prevents ktruss from being unnecessarily rebuilt in rescue/.
Pointed out by enami@, thanks!
2009-12-08 02:56:37 +00:00
christos
8f7e9f408c
PR/42243: Yasuoka Masahiko: Add support for "net.inet.icmp.bmcastecho" support.
...
Print the current status.
2009-12-07 18:48:45 +00:00
uebayasi
acfaaf21f8
Correct the dependency; makeerrnos.sh generates misc.c and misc.h. dump.c
...
is never involved there. Those dependency has been wrong since Rev. 1.1.
2009-12-06 14:37:36 +00:00
pooka
70d4493c77
Remove the portalfs kernel file system driver. Replace mount_portal(8)
...
with a version based on puffs. User functionality remains the same.
2009-12-05 20:11:01 +00:00
plunky
e16149e27c
add alias for Plug'n'Play Information service UUID.
...
(This is sometimes used in HID devices to provide manufacturer information)
2009-12-05 16:54:13 +00:00
mrg
59c18d14fe
apply a change from Xin LI <delphij@delphij.net> to avoid problems when
...
reading from pipes. introduced with the multi-part bz2 fixes.
2009-12-05 03:23:37 +00:00
dsl
7828c3fe21
Add a note telling people to use the shell getopts builtin.
2009-11-28 20:36:45 +00:00
dsl
e2fd1f1d18
Use shell builtin getopts instead of getopt(1).
...
Fixes PR/30425
2009-11-28 20:30:01 +00:00
darcy
fc5c0ee967
Don't include newlines when comparing to prevent errors when lines have
...
characters that sort lower such as tabs.
This is a temporary fix to allow pullups to existing, supported versions
of NetBSD. I will follow up with a version for current using the new
getline function.
2009-11-28 03:56:38 +00:00
plunky
60e7a7b128
add translation for "802.1Q" ethertype
2009-11-22 18:53:44 +00:00
wiz
af753b56d3
New sentence, new line; remove trailing whitespace.
2009-11-19 06:48:37 +00:00
sjg
9772f81de8
Add .unexport - the exact opposite of .export
...
and .unexport-env which unexport's all previously .export'd globals
as well as clearing environ[].
Allow's sys.mk near total controll.
Reviewed by: apb
2009-11-19 00:30:25 +00:00
sjg
b87966b319
PR: make.unexport
...
Reviewed by:
2009-11-19 00:30:24 +00:00
sjg
f3c8b50aa4
Add .unexport - the exact opposite of .export
...
and .unexport-env which unexport's all previously .export'd globals
as well as clearing environ[].
Allow's sys.mk near total controll.
Reviewed by: apb
2009-11-19 00:30:24 +00:00
skrll
77fd7698f3
Make _rtld_pagesz of type size_t.
...
Fixes round_down for alpha which made ldd(1) break.
2009-11-17 18:44:33 +00:00
drochner
884c70cd50
ANSIfy, sprinkle "const" in some obvious cases
2009-11-17 18:31:12 +00:00
drochner
51f9e504fe
kill a stray semicolon which made that the "-p <cmd>" option in
...
POSIX mode didn't work as expected
2009-11-16 19:40:17 +00:00
lukem
7f19467717
Crank version to 20090915:
...
* rename internal getline() to get_line() to avoid conflict with libc
* avoid NULL deref in verbose output in an error path
* improve man page markup
2009-11-15 10:03:16 +00:00
tron
87a288ba6f
Don't assume that "id_t", "gid_t" and "uid_t" use the same underlying type
...
and use the appropriate types instead. Tested under NetBSD 5.99.22
and Darwin 10.2.0.
This should fix one of the cross-builds under FreeBSD as reported by
Rhialto on the "current-users" mailing list.
2009-11-12 10:10:49 +00:00
joerg
2ec9715635
Do not use \." for comments, always use .\". Discussed with uwe@.
2009-11-12 00:43:52 +00:00
dsl
fe39abeba9
Clarify (hopefully) the description of -remove.
...
Fixes PR/38987
2009-11-06 21:03:12 +00:00
dsl
c85c5e109a
Report lines that ought to contain a ':' operator but start with a '.'
...
as "Unknown directive" sinze they are more likely to be .elseif (etc).
Lets me close PR/37222!
2009-11-06 20:20:56 +00:00
dsl
9e7c371385
Change enum values so that TOK_FALSE is 0 and TOK_TRUE is 1.
...
Use this fact to remove loads of ? : clauses.
2009-11-06 19:44:06 +00:00
joerg
2b8a053617
Retire __SCCSID. It has only archeological value now. Also retire lint
...
conditional around __RCSID, lint can handle that fine.
2009-11-06 18:34:22 +00:00
joerg
98712b66ed
Fix __progname mess.
2009-11-06 15:13:27 +00:00
dsl
ff86378d52
Allow display intervals > 25 seconds.
...
Fixes PR/36999
I did contemplate chaging curses - but the code is replicated and warped.
2009-11-04 21:46:24 +00:00
dsl
57843c1579
Correctly count number of chars output so that help isn't blank if the
...
terminal is too narrow.
Not ideal since the last command isn't shown on 80 column terminals.
2009-11-01 22:08:14 +00:00
joerg
c2ab44f7a7
Always define _PATH_DIVNAME to the Unix version. Drop UNIQUE.
...
Fixes build on Mac OS X.
2009-10-31 23:25:04 +00:00