peter
81248009f2
Missing newline caused too much text to be fed to the macro.
...
Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>, PR#3228
1997-04-08 10:45:10 +00:00
peter
b9fe2f81dd
setsid is declared in <unistd.h>, which is self sufficient (doesn't need
...
prior <sys/types.h>)
Fixes PR#3229, from Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
1997-04-08 10:43:47 +00:00
guido
5b77d8f791
Fix race
...
Obtained from: Keith Bostic
1997-04-07 18:01:10 +00:00
ache
7b1360495d
Restore PATH_LOCALE functionality using issetugid() call now
1997-04-07 08:54:38 +00:00
ache
1aefb8ae80
Speedup in case locale not used
1997-04-04 20:10:53 +00:00
ache
f9d135173d
Speedup in case locale not used
1997-04-04 19:40:49 +00:00
ache
cb04a31ca3
Speedup in case locale not used
1997-04-04 19:16:08 +00:00
ache
1fc112af6f
Eliminate some function calls when locale not used
1997-04-04 19:08:19 +00:00
ache
8dc8604567
Eliminate yet one function call when locale not used
1997-04-04 19:07:02 +00:00
ache
9f599254e5
Speedup in case locale not used
1997-04-04 18:44:19 +00:00
ache
3cb787be7f
Speedup in case locale not used
1997-04-04 18:28:38 +00:00
jkh
3dc44eb7dd
Add libg++ 3.0
1997-04-03 06:08:28 +00:00
mpp
b33b193134
Honor the nouser/nogroup flag when determing if NULL should
...
be returned if a cached uid/gid does not exist in the password
file.
1997-04-03 01:51:34 +00:00
peter
54b1a6105b
Update to include details about the changes to setuid/setgid.
1997-04-02 17:24:16 +00:00
jdp
1eeccd0067
Fix an error in the previous revision that caused make world breakage.
1997-04-02 16:49:18 +00:00
mpp
c04526324b
The user_from_{uid,gid} routines would return garbage if the
...
uid/gid in question was in the cache, but did not exist
in the password file. This causes the -nouser and -nogroup
options to find(1) to only print the first file owned by
an unknown user/group in some cases.
1997-04-02 06:20:04 +00:00
mpp
b4e758bf65
Grammar police.
1997-04-02 05:52:22 +00:00
ache
92e0ce403a
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
d3ec62f2fd
Code space optimization in uu_lockerr()
1997-04-02 03:53:49 +00:00
ache
3c64721fa7
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
483d5e360e
Correct the most glaring errors. I have a feeling there are some
...
left.
1997-04-02 01:42:07 +00:00
ache
31ef1e437d
Link chown with lchown
1997-04-01 23:07:55 +00:00
ache
ae0c6c044e
Add issetugid.2 to MAN2 list
1997-04-01 22:57:56 +00:00
jb
f0841c21ac
Fix the return value. Oops.
1997-04-01 22:52:43 +00:00
jb
23802b4b62
Fix indentations. Sigh.
1997-04-01 22:51:48 +00:00
jb
70db53e4e7
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
281aa43a36
Add parentheses to make blocking mode work.
1997-04-01 22:44:18 +00:00
mpp
a8f58296ab
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
b87dacefe4
Don't xref setregid(2) twice - one of them should be setreuid(2).
1997-04-01 18:50:56 +00:00
mpp
288c649489
Fix one very minor mdoc problem. Gentle enough, Peter? :-)
1997-04-01 18:45:57 +00:00
mpp
2e658dbf0d
Fix a minor grammar problem.
1997-04-01 18:06:33 +00:00
mpp
00374de535
MLINK uu_lockerr(3).
1997-04-01 17:44:58 +00:00
mpp
6fb13de4c3
Mdoc police.
1997-04-01 17:44:31 +00:00
bde
0be4160258
Simplified install rule.
1997-04-01 13:53:16 +00:00
jmz
7014b47114
Fix the output format for numbers >= 1E99.
...
Closes PR bin/648.
1997-04-01 02:32:41 +00:00
jmz
a002b17d47
Add the -DPedantic flag. This is used in wref.c only.
1997-04-01 02:27:11 +00:00
brian
cb7f5ad555
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
1cce6194df
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
f551f7b0a0
Steal issetugid man page from OpenBSD. Needs work..
...
Obtained from: OpenBSD
1997-03-31 15:59:14 +00:00
peter
a3b55ed48c
Add libc hook for issetugid()
1997-03-31 15:43:22 +00:00
peter
3c380c1c44
Create lchown() in libc and document it as a variation of chown().
1997-03-31 12:37:35 +00:00
bde
7ee566c897
Fixed wording of previous change.
...
Obtained from: fgets.3
Guided by: ISO C standard
1997-03-31 05:18:27 +00:00
imp
db8be68e53
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
10839f0219
Move uucplock into libutil and create a manual page.
1997-03-30 12:12:20 +00:00
ache
869ea014d0
Remove orand* code as promised for the next release
1997-03-29 19:55:03 +00:00
ache
cbbcd6ad7e
Remove unneded define from CFLAGS (from orand* compatibility)
1997-03-29 19:45:07 +00:00
ache
63a7010524
Remove orand* compatibility as promised (next release)
1997-03-29 19:44:14 +00:00
jdp
e39d0906a6
Remove conflicting declaration of sys_errlist, which caused make world
...
breakage.
1997-03-29 17:42:32 +00:00
bde
4003214ed8
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
df9784adc5
The w+ entry description was misformatted.
...
Pointed out by: bde
1997-03-27 18:08:23 +00:00