ache
3459efd284
File positions are off_t nowdays, not long, so:
...
fseek -> fseeko
ftell -> ftello
fseek(x, 0L, 0) -> rewind(x)
NOTE: that fseek/ftell not works for >long offsets per POSIX:
[EOVERFLOW] For fseek( ), the resulting file offset would be a value which
cannot be represented correctly in an object of type long.
[EOVERFLOW] For ftell ( ), the current file offset cannot be represented
correctly in an object of type long.
2001-09-03 04:30:46 +00:00
ache
0bff53b958
File positions are off_t nowdays, not long, so:
...
fseek -> fseeko
ftell -> ftello
NOTE: fseek/ftell not works for >long offsets per POSIX:
[EOVERFLOW] For fseek( ), the resulting file offset would be a value which
cannot be represented correctly in an object of type long.
[EOVERFLOW] For ftell ( ), the current file offset cannot be represented
correctly in an object of type long.
2001-09-02 14:40:51 +00:00
ache
5d356fcfe8
strtol -> strtoll (for off_t file size)
2001-09-01 23:36:40 +00:00
ache
724512f05b
File positions are off_t nowdays, not long, so:
...
long -> off_t
fseek -> fseeko
NOTE: that fseek not works for >long offsets files per POSIX:
[EOVERFLOW] For fseek( ), the resulting file offset would be a value which
cannot be represented correctly in an object of type long.
2001-09-01 23:01:29 +00:00
ache
63ed2f311c
File positions are off_t nowdays, not long, so:
...
strtol -> strtoll
fseek -> fseeko
NOTE: that fseek not works for >long offsets files per POSIX:
[EOVERFLOW] For fseek( ), the resulting file offset would be a value which
cannot be represented correctly in an object of type long.
2001-09-01 22:42:47 +00:00
ache
46ab006323
File positions are off_t nowdays, not long, so:
...
long -> off_t
strtol -> strtoll
fseek -> fseeko
NOTE: that fseek not works for >long offsets files per POSIX:
[EOVERFLOW] For fseek( ), the resulting file offset would be a value which
cannot be represented correctly in an object of type long.
2001-09-01 22:22:45 +00:00
kris
70a0876b07
Remove some unsafe function calls from the signal handlers.
...
Obtained from: OpenBSD
Reviewed by: audit
MFC after: 2 weeks
2001-09-01 07:35:25 +00:00
mp
bb0d8fb153
Exit gracefully when a SIGHUP is received. This prevents ee from going into
...
an infinite spin loop when the terminal window is forcibly blown away.
PR: 29553
Reported by: Sung N. Cho <sucho2@vt.edu>
MFC after: 1 day
2001-08-31 21:50:06 +00:00
ru
d7e70183dd
SECURITY: Drop `setgid kmem' bit as early as possible.
2001-08-31 16:26:37 +00:00
ru
336fa38138
Sort predicates.
...
PR: docs/30237
2001-08-31 15:48:00 +00:00
jmas
64396d11be
Add myself.
2001-08-31 11:35:18 +00:00
adrian
1e917c90b9
Make my Grandfather famous by showing the world my middle name,
...
as seems to be the trend.
(Thanks Josef. :-)
2001-08-31 00:25:16 +00:00
mike
6c9222dbed
Revert the previous delta and apply a better fix which corrects
...
a check on the final snprintf and reduces duplicated code.
Submitted by: brian
2001-08-30 17:13:15 +00:00
ru
9f91e74da7
Restore the `-perm +mode' feature.
...
Broken in the "close a PR" race, in revision 1.30.
Note that the patch in the PR did not have this bug!
2001-08-30 13:17:58 +00:00
joe
5e1e7d4b9b
Make my Dad famous by showing the world my middle name, as seems
...
to be the trend.
2001-08-30 13:17:26 +00:00
markm
a09c0b5da3
Like su(1), make PAM use mandatory. Remove parts of the authentication
...
logic that are handled by PAM. Fix documentation to reflect this.
2001-08-30 11:27:36 +00:00
alex
487729ee23
Remove whitespace at end of line I happened to find during my last edit.
2001-08-30 02:32:00 +00:00
alex
30bc91ada7
Add support for proper URI encoding, using strvisx(3)'s VIS_HTTPSTYLE.
...
Requests through a proxy are still broken for URIs that contain
blanks, since this required a bigger rewrite of the whole function.
2001-08-30 02:30:33 +00:00
mike
e37b33abc6
Add support for HTTP/1.1 name-based virtual hosts. Also, use
...
asprintf(3) when creating the request string, as the length of
a path is defined as unlimited by the standard and limiting the
total request to 4K is awfully arbitrary.
PR: 30054
Submitted by: Joseph Mallett <jmallett@xMach.org>
MFC after: 8 days
2001-08-30 00:57:35 +00:00
mike
b093d3a26e
o Fix some checks on snprintf(3) to prevent miscalculations.
...
o This fixes a memory leak that can occur on some URL's.
Pointy hat to: brian
2001-08-29 23:51:14 +00:00
markm
5987cca2b8
Manually unifdef(1) CRAY, UNICOS, hpux and sun uselsess code.
2001-08-29 14:16:17 +00:00
joerg
c9d495ceb8
In get_string(), 0-terminate the contents of buf ``just in case'';
...
otherwise, if the very first fgetc() already yielded EOF, the returned
string won't get terminated at all.
MFC after: 1 day
2001-08-28 21:27:36 +00:00
dd
3eadebdb42
-a is not an options (sic).
2001-08-28 12:48:19 +00:00
dd
22c4fd8a9b
Mention what an asterisk means in the -i display.
...
PR: 30069
Submitted by: andrew@ugh.net.au
2001-08-28 12:45:47 +00:00
dillon
d90cfb096d
Remove MAP_INHERIT flag from mmaps.
2001-08-25 18:06:32 +00:00
dd
5ae98887a4
``recognized -> recognize'' where appropriate.
...
Obtained from: OpenBSD
2001-08-23 21:13:31 +00:00
brian
4fa1bbf1c3
Fix my previous snprintf() patches (which were largely no-ops).
...
Mostly submitted by: bde
2001-08-23 12:53:15 +00:00
petef
ca261a6c5c
Add myself.
...
Reviewed by: ade
2001-08-22 23:13:55 +00:00
mike
bcf70c152e
Take maintainership of whois(1).
2001-08-21 19:24:50 +00:00
ru
ac9087fba1
Update -v documentation to match reality.
...
Spotted by: bde
2001-08-21 15:59:55 +00:00
brian
c5bd8f6e5d
Revert to version 1.16 which was more correct than either of my attempts.
2001-08-21 12:54:15 +00:00
brian
be0965e41d
Display a better error message when snprintf() returns < 0
...
Pointed out by: bde
2001-08-21 11:39:45 +00:00
brian
30830b4292
Handle overflows from snprintf(), not just returns of < 0
...
Pointed out by: bde
2001-08-21 11:39:32 +00:00
brian
569bf91b79
Remove unnecessary casts.
...
The original (1.16) code was mostly correct, but this version is
far clearer.
Casts suggested to now be obfuscations by: bde
2001-08-21 11:24:53 +00:00
brian
5bd90784a6
Handle snprintf() returning -1.
...
MFC after: 2 weeks
2001-08-20 14:46:40 +00:00
markm
3812f01803
Very minor stylistic nit.
...
Discussed with: ru
2001-08-20 12:46:11 +00:00
markm
83e59be2f6
Code merge and diff reduction between this and crypto telnet.
...
Also remove useless AUTHENTICATION code. We have never compiled this
here, and it is doubtful that it even works without crypto.
2001-08-20 12:21:31 +00:00
brian
e5aeafb88a
Don't misuse the return from snprintf.
...
MFC after: 2 weeks
2001-08-20 11:58:05 +00:00
kris
5329ff37f2
Don't overflow a buffer from command line arguments.
...
MFC after: 2 weeks
2001-08-20 09:43:04 +00:00
kris
a6b313f27f
Part II of libss retirement: zap mk_cmds too.
...
Pointy hat to: kris
2001-08-20 06:23:35 +00:00
des
4debb1b901
Remove a blank line that snuck in with the previous commit.
...
Set the default timeout to 120 seconds instead of 0 (no timeout).
2001-08-18 10:48:55 +00:00
peter
77c5965e95
Correct path (../crypto, not ../../crypto)
2001-08-18 03:36:26 +00:00
des
f1dd0e9302
Add some comments.
2001-08-17 22:22:45 +00:00
obrien
dd7a669ee7
Use a build-tool to create the .mgc files.
...
Submitted by: ru (partial)
Obtained from: NetBSD (basic idea)
Reviewed by: bde, ru
2001-08-17 17:21:38 +00:00
fjoe
d0749da32c
add an entry about myself
...
Reviewed by: jdp
2001-08-17 05:59:39 +00:00
mikeh
1fea34de62
Print a space between the function name and line number.
...
PR: bin/10980
MFC after: 2 weeks
2001-08-16 16:18:14 +00:00
mikeh
9e512f5897
Add $FreeBSD$
...
MFC after: 2 weeks
2001-08-16 16:16:07 +00:00
sheldonh
5ec991a49c
* Update author's e-mail address.
...
* When the author of an utility also wrote its manual page (a rarety, I
know), it is not necessary to say that the utility "and this manual
page" were written by the author.
2001-08-16 08:40:54 +00:00
sheldonh
2ba16ad962
Use the .Cm macro to mark up the modifiers of the -s flag's size argument.
2001-08-16 08:19:09 +00:00
mikeh
3682fdb5a9
Fix usage message, the executable is optional.
...
PR: bin/29735
MFC after: 2 weeks
2001-08-15 21:25:50 +00:00