Commit Graph

1593 Commits

Author SHA1 Message Date
mpp
733ff61cd8 Grammar police. 1997-04-02 05:52:22 +00:00
ache
2fe8fae1c4 Add Id
Reduce space for error bufer from 512 to 128: there is no such long strings
can be returned from strerror()
1997-04-02 04:24:39 +00:00
ache
d53835f558 Code space optimization in uu_lockerr() 1997-04-02 03:53:49 +00:00
ache
2a8598fba9 Remove unused USE_PERROR define and syslog.h include
Use snprintf instead of sprintf to avoid buffer overflows
Use snprintf in uu_lockerr instead of lots of hardcoded constants
and not null-terminated strncpy
Return "" for OK and "device in use" for INUSE, it allows simple
strcpy(buf, uu_lockerr(retcode)) without testing for special OK
case (NULL was there) and obtaining meaningful result for INUSE
("" was there) without special testing for it too.
1997-04-02 03:38:29 +00:00
jdp
40caa29c61 Correct the most glaring errors. I have a feeling there are some
left.
1997-04-02 01:42:07 +00:00
ache
fb1f7b5380 Link chown with lchown 1997-04-01 23:07:55 +00:00
ache
a080f4a08e Add issetugid.2 to MAN2 list 1997-04-01 22:57:56 +00:00
jb
cbf44f46b7 Fix the return value. Oops. 1997-04-01 22:52:43 +00:00
jb
ef0f834339 Fix indentations. Sigh. 1997-04-01 22:51:48 +00:00
jb
bc406c9764 Make error checking less zealous to handle devices like /dev/null
which don't provide a non-blocking interface.

This is a short term "fix" which changes a half-lose to a half-win.
The thread that accesses a device that does not provide a non-blocking
interface will block for its time slice.

A medium term solution would be to use rfork. A long-term solution
would be some sort of kernel thread/SMP implementation.
1997-04-01 22:49:58 +00:00
jb
1e950f70a0 Add parentheses to make blocking mode work. 1997-04-01 22:44:18 +00:00
mpp
226a8626e9 Xref the new issetugid(2) man page where appropriate.
Also add additional set*id(2) xrefs where appropriate.
1997-04-01 18:58:38 +00:00
mpp
e2a9725eb5 Don't xref setregid(2) twice - one of them should be setreuid(2). 1997-04-01 18:50:56 +00:00
mpp
c52c6fdd3c Fix one very minor mdoc problem. Gentle enough, Peter? :-) 1997-04-01 18:45:57 +00:00
mpp
6eae2a4b1c Fix a minor grammar problem. 1997-04-01 18:06:33 +00:00
mpp
d62478baea MLINK uu_lockerr(3). 1997-04-01 17:44:58 +00:00
mpp
1cbca1adb4 Mdoc police. 1997-04-01 17:44:31 +00:00
bde
bc2bed03f5 Simplified install rule. 1997-04-01 13:53:16 +00:00
jmz
df8849b6b1 Fix the output format for numbers >= 1E99.
Closes PR bin/648.
1997-04-01 02:32:41 +00:00
jmz
533c9b9c7a Add the -DPedantic flag. This is used in wref.c only. 1997-04-01 02:27:11 +00:00
brian
290dc20dec Remove the syslog stuff, and allow various return values
in uu_lock().  Add uu_lockerr() for turning the results of
uu_lock into something printable.  Remove bogus section in man page
about race conditions allowing both processes to get the lock.
Include libutil.h and use uu_lock() correctly  where it should.

Suggested by:	ache@freebsd.org
1997-03-31 22:51:00 +00:00
peter
c2b2556c58 General cleanup and update to specify exactly how our implementation
passes on the status across fork/exec.

The previous version had some typos, referred to itself as link(2) in
one place :-), and didn't really match openbsd's implementation either.

Now that I've mentioned typos, hopefully our Typo Police and Xref Police
will be gentle with me. :-)
1997-03-31 16:36:14 +00:00
peter
bfbbf22af5 Steal issetugid man page from OpenBSD. Needs work..
Obtained from: OpenBSD
1997-03-31 15:59:14 +00:00
peter
f1cae064be Add libc hook for issetugid() 1997-03-31 15:43:22 +00:00
peter
b8c892c60a Create lchown() in libc and document it as a variation of chown(). 1997-03-31 12:37:35 +00:00
bde
07a46295f6 Fixed wording of previous change.
Obtained from:	fgets.3
Guided by:	ISO C standard
1997-03-31 05:18:27 +00:00
imp
9fbe13c29e Revert my last few changes. They were bogus. Replaced them with
the original text plus a statement saying that if strftime fails,
the results are undefined.

Requested a long time ago by: bde
1997-03-31 04:51:13 +00:00
brian
1e0f01eb52 Move uucplock into libutil and create a manual page. 1997-03-30 12:12:20 +00:00
ache
a539edccf5 Remove orand* code as promised for the next release 1997-03-29 19:55:03 +00:00
ache
b34c569024 Remove unneded define from CFLAGS (from orand* compatibility) 1997-03-29 19:45:07 +00:00
ache
43dcab55a6 Remove orand* compatibility as promised (next release) 1997-03-29 19:44:14 +00:00
jdp
6a871dc71e Remove conflicting declaration of sys_errlist, which caused make world
breakage.
1997-03-29 17:42:32 +00:00
bde
b62167ef3c Fixed #includes in synopsis to compile.
Fixed #includes in synopsis to declare the prototype in the synopsis.
Fixed stale types in description of struct dirent.
1997-03-28 12:27:42 +00:00
mpp
2cc49cf09d The w+ entry description was misformatted.
Pointed out by: bde
1997-03-27 18:08:23 +00:00
davidn
0e8df9b57c Remove minor warning (for -Wall -Wshadow); clarifies code. 1997-03-26 15:42:09 +00:00
mpp
b35a22092b Get my last commit right. The NOTE section now reads:
The sa_mask field specified in act is not allowed to block SIGKILL or
SIGSTOP.  Any attempt to do so will be silently ignored.

Now where did I leave that pointy hat...
1997-03-25 18:33:23 +00:00
imp
a840bf43b3 Restricting $LANG was a really bad idea
Pointed out by: Everybody but Jordan.
1997-03-25 05:36:37 +00:00
imp
7211abb8ed Back out 1.14 until I reproduce trouble reports 1997-03-25 05:34:31 +00:00
mpp
1c9b82e59c Change the description of how attempts to block SIGKILL and SIGSTOP
are handled.  The system call will actually fail in this case - the
system doesn't silently ignore the request.  Closes PR# 3047

Pointed out by: fenner
1997-03-25 03:39:54 +00:00
imp
a464de694f Don't overflow buffers, and only open alternative termcap files if we're
not running setuid or setgid.

Fixes PR 2586

Submitted by:	Julian Assange
1997-03-24 06:41:30 +00:00
imp
c4b2481493 Don't honor LANG or NLSPATH if we're setuid/setgid.
Fixes PR 2582

Submitted by:	 Julian Assange
1997-03-24 06:15:07 +00:00
imp
ba8fa05e25 If we're running setuid/setguid then don't open the host alias file to
prevent information leakage.

Closes PR 2578

Submitted by:	Julian Assange
1997-03-24 06:11:44 +00:00
imp
384ba04330 Don't open the tz file if we're running setuid or setgid to prevent infomration
leakage.

Submitted by:	Julian Assange
1997-03-24 06:09:50 +00:00
jmg
4aac28d13c add xrefs for getpeername, so other people that look for it can find it.. :) 1997-03-24 01:22:01 +00:00
imp
233c3bed8a Buffer overflow. Similar, but different, to the fix that Julian A submitted
in PR 2580.

Obtained from: BSDi by way of Keith Bostic

Should be in 2.2 and 2.1.x.  I'll merge into 2.2.
1997-03-23 23:31:50 +00:00
imp
8ce67e9fb5 Fix a minor buffer overflow.
Obtained from: BSDi by way of Keith Bostic
1997-03-23 23:17:22 +00:00
ache
90f4011ee1 Add srandomdev.3 link 1997-03-23 23:12:59 +00:00
ache
2914a51519 Fix urandom reference in the comment 1997-03-23 23:09:31 +00:00
ache
3e0da61b48 Add srandomdev() description 1997-03-23 23:08:31 +00:00
ache
f5290e5fd5 Add srandomdev() function (use "/dev/urandom" now)
Submitted by: wollman & me (add type casts and remove unneded loop)
1997-03-23 22:40:20 +00:00