| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
is good for... :-)), I discovered that part of the change when mkstemps()
was brought in was missed - it was missing the termination case to make
sure it doesn't walk into the suffix. This isn't the same code OpenBSD
has, I think this is a little better as we terminate the loop in a better
spot.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
misleading.
Submitted by: Theo de Raadt <deraadt@cvs.openbsd.org>
|
| |
|
| |
|
|
|
|
| |
Use _mktemp internally
|
| |
|
|
|
|
|
|
| |
these are inherently unsafe interfaces.
Do not allow TMPDIR to override path for setuid/setgid programs.
|
|
|
|
|
| |
Submitted by: Anton Berezin <tobez@plab.ku.dk>
PR : 12852
|
|
|
|
| |
%G formats.
|
|
|
|
|
| |
misinterpreted to mean that the pointer passed to asprintf() must be suitable
for passing to realloc() as-is (ie. either a NULL pointer or a valid pointer).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
track.
The $Id$ line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;
.\" $Id$
.\"
If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.
Approved by: bde
|
|
|
|
|
| |
the underlying file descriptor is also closed. To me at least this wasn't
immediately obvious.
|
|
|
|
| |
Noted by: bde
|
|
|
|
|
| |
Obtained from: OpenBSD
Poked in the eye about committing new functions without a manpage: obrien
|
|
|
|
|
|
| |
hasn't caused any problems until the egcs import. This fix breaks the
world build, but my very next commit will remove mkstemps from the
egcs build.
|
|
|
|
| |
Reviewed by: bde
|
| |
|
|
|
|
|
|
|
|
|
| |
compiling, since <stdio.h> correctly doesn't declare off_t although
the pseudo-prototypes for the new fseeko() and ftello() functions
use it. Handle this like the corresponding problem for va_list
versus the vprintf() family.
Fixed some English errors.
|
|
|
|
| |
PR: docs/10247
|
|
|
|
|
|
|
| |
Fixed fgetpos() and fsetpos() for offsets > 2GB.
PR: 8637
Submitted by: Dan Nelson <dnelson@emsphone.com> (adjusted by me a little)
|
| |
|
| |
|
|
|
|
| |
mkstemp() is not behaving as documented.
|
|
|
|
|
|
|
| |
There are other ways to fix this than wrapping _gettemp(), but this was
the most convenient.
Discovered by: bde
|
|
|
|
|
|
|
|
| |
ever saw one), and move the description of NULL behaviour out to a
'NOTES' section, with an extra note that programs should not rely up
on it.
Kinda-approve-by: bde (by not replying to the mail with the diff)
|
|
|
|
| |
Noticed by: Alex Nash <nash@mcs.net>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
string. From the submitted patch:
Credit for patch: Chris Torek <torek@bsdi.com>
Tod Miller <millert@openbsd.org>
This makes us in line with SunOS 4.1.3_U1, Solaris 2.6, OpenBSD 2.3,
HP-UX 10.20, Irix 5.3. The previous behavior was in line with Ultrix 4.4.
PR: bin/7970
Submitted by: Niall Smart nialls@euristix.ie
|
|
|
|
|
|
|
|
|
|
|
| |
In some cases replace if (a == null) a = malloc(x); else a =
realloc(a, x); with simple reallocf(a, x). Per ANSI-C, this is
guaranteed to be the same thing.
I've been running these on my system here w/o ill effects for some
time. However, the CTM-express is at part 6 of 34 for the CAM
changes, so I've not been able to do a build world with the CAM in the
tree with these changes. Shouldn't impact anything, but...
|
|
|
|
|
|
|
|
| |
more cleanly integrated with stdio. This should be faster and cleaner
since it doesn't memcpy() the data into a seperate buffer. This lets
stdio allocate and manage the buffer and then hand it over to the user.
Obtained from: Todd Miller <Todd.Miller@courtesan.com> via OpenBSD
|
|
|
|
|
| |
PR: 6868
Submitted by: Josh Gilliam <josh@quick.net>
|
| |
|
|
|
|
|
| |
va_list is not a pointer on alpha. Instead, use the va_arg() macro
to return the address that is stored in the argtable.
|
|
|
|
| |
POSIX defines.
|
|
|
|
|
|
|
|
| |
leading XXX's. It could wrap an uppercase character through chars
like: [ \ ] ^ _ ` in between Z and a. The backslash and back tick
might be particularly nasty in a shell script context. Also, since
we've been using upper-case generated values for a while now, go with
the flow and use them in the pathname search rotation.
|
|
|
|
|
|
|
|
| |
Change the FILE locking to support kernel threads when linked with
libpthread (which you haven't see yet). This requires that libc become
thread-safe and thread-aware, testing __isthreaded before attempting
to do lock/unlock calls. The impact on non-threaded programs is minor.
This change works with libc_r, so it's the best compromise.
|
| |
|
| |
|
|
|
|
|
|
| |
references to abort() in light of POSIX mandated behaviour. I'm
still not 100% happy with much of the wording, but it's better
than it was.
|
|
|
|
|
|
| |
I noticed cvs core dumps and uncleaned cvs temporary files in /tmp.
Fixed ANSIisms.
|
|
|
|
|
|
|
|
|
|
|
| |
implement mkdtemp
improve man page for mk*temp
use arc4random to seed extra XXX's randomly
Optionally warn of unsafe mktemp uses
From various commits by theo de raadt and Todd Miller.
Obtained from: OpenBSD
This should go into 2.2 after a testing period.
|
|
|
|
|
| |
in arguments length INT_MAX overflow check
Suggested-by: bde
|
|
|
|
|
|
|
|
|
|
| |
case has very little to do with the output size being larger than
INT_MAX.
2. The new #include of <limits.h> was disordered.
3. The new declaration of `on' was disordered (integer types go together).
4. Testing an unsigned value for > 0 was fishy.
Submitted by: bde
|
|
|
|
| |
just return EOF
|
| |
|
|
|
|
|
| |
2) Optimize string buffer copy to call memcpy() and update pointers
only for count > 0, it makes snprintf(NULL, 0, ...) more efficient
|
|
|
|
|
|
|
|
|
|
| |
instead of Singe Unix, thanx Bruce for explaining, I am not realize
standards war was there.
But now, fix n == 0 case to not return error and fix check for too
big n.
Things left to do: check for overflow in arguments.
|