diff options
author | mdf <mdf@FreeBSD.org> | 2010-09-10 16:42:16 +0000 |
---|---|---|
committer | mdf <mdf@FreeBSD.org> | 2010-09-10 16:42:16 +0000 |
commit | ab3a8b533a824bceba3baf79642745d2b57f4c9d (patch) | |
tree | e9bea66185b980482df09793bce47717d6df59f2 /sys/kern/kern_sig.c | |
parent | d0cd039a30daea0e7c8a5089793befb261d13de1 (diff) | |
download | FreeBSD-src-ab3a8b533a824bceba3baf79642745d2b57f4c9d.zip FreeBSD-src-ab3a8b533a824bceba3baf79642745d2b57f4c9d.tar.gz |
Replace sbuf_overflowed() with sbuf_error(), which returns any error
code associated with overflow or with the drain function. While this
function is not expected to be used often, it produces more information
in the form of an errno that sbuf_overflowed() did.
Diffstat (limited to 'sys/kern/kern_sig.c')
-rw-r--r-- | sys/kern/kern_sig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index f54d59e..d315ff1 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -3093,7 +3093,7 @@ expand_name(const char *name, uid_t uid, pid_t pid, struct thread *td, sbuf_printf(&sb, GZ_SUFFIX); } #endif - if (sbuf_overflowed(&sb)) { + if (sbuf_error(&sb) != 0) { log(LOG_ERR, "pid %ld (%s), uid (%lu): corename is too " "long\n", (long)pid, name, (u_long)uid); nomem: |