| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
PR: 10531
Submitted by: Lawrence D. Lopez <lopez@cisco.com>
|
|
|
|
| |
Pointed out by: Charlie Sorsby <crs@hgo.net>
|
|
|
|
| |
uu_lock() to another process.
|
|
|
|
| |
Suggested by: joerg
|
| |
|
|
|
|
| |
Suggested by: joerg
|
|
|
|
|
| |
Reduce space for error bufer from 512 to 128: there is no such long strings
can be returned from strerror()
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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
|
|
|