sync with OpenBSD -current
This commit is contained in:
parent
01dd575d45
commit
12ef7bd342
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: func.c,v 1.41 2023/03/08 04:43:04 guenther Exp $ */
|
/* $OpenBSD: func.c,v 1.42 2024/04/23 13:34:50 jsg Exp $ */
|
||||||
/* $NetBSD: func.c,v 1.11 1996/02/09 02:28:29 christos Exp $ */
|
/* $NetBSD: func.c,v 1.11 1996/02/09 02:28:29 christos Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
@ -866,8 +866,8 @@ xecho(int sep, Char **v)
|
|||||||
(void) fflush(cshout);
|
(void) fflush(cshout);
|
||||||
if (setintr)
|
if (setintr)
|
||||||
sigprocmask(SIG_BLOCK, &sigset, NULL);
|
sigprocmask(SIG_BLOCK, &sigset, NULL);
|
||||||
blkfree(gargv);
|
blkfree(gargv);
|
||||||
gargv = NULL;
|
gargv = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: buf.c,v 1.24 2019/06/28 13:34:59 deraadt Exp $ */
|
/* $OpenBSD: buf.c,v 1.25 2024/04/23 13:34:50 jsg Exp $ */
|
||||||
/* $NetBSD: buf.c,v 1.15 1995/04/23 10:07:28 cgd Exp $ */
|
/* $NetBSD: buf.c,v 1.15 1995/04/23 10:07:28 cgd Exp $ */
|
||||||
|
|
||||||
/* buf.c: This file contains the scratch-file buffer routines for the
|
/* buf.c: This file contains the scratch-file buffer routines for the
|
||||||
@ -158,8 +158,8 @@ get_line_node_addr(line_t *lp)
|
|||||||
if (n && cp == &buffer_head) {
|
if (n && cp == &buffer_head) {
|
||||||
seterrmsg("invalid address");
|
seterrmsg("invalid address");
|
||||||
return ERR;
|
return ERR;
|
||||||
}
|
}
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: c_ksh.c,v 1.62 2019/06/28 13:34:59 deraadt Exp $ */
|
/* $OpenBSD: c_ksh.c,v 1.63 2024/04/23 13:34:50 jsg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* built-in Korn commands: c_*
|
* built-in Korn commands: c_*
|
||||||
@ -810,8 +810,8 @@ c_typeset(char **wp)
|
|||||||
if ((vp->flag&INT_U))
|
if ((vp->flag&INT_U))
|
||||||
shprintf("-U ");
|
shprintf("-U ");
|
||||||
shprintf("%s\n", vp->name);
|
shprintf("%s\n", vp->name);
|
||||||
if (vp->flag&ARRAY)
|
if (vp->flag&ARRAY)
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
if (pflag)
|
if (pflag)
|
||||||
shprintf("%s ",
|
shprintf("%s ",
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: edit.c,v 1.70 2023/06/21 22:22:08 millert Exp $ */
|
/* $OpenBSD: edit.c,v 1.71 2024/04/23 13:34:50 jsg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Command line editing - common code
|
* Command line editing - common code
|
||||||
@ -451,7 +451,7 @@ x_file_glob(int flags, const char *str, int slen, char ***wordsp)
|
|||||||
* which evaluated to an empty string (e.g.,
|
* which evaluated to an empty string (e.g.,
|
||||||
* "$FOO" when there is no FOO, etc).
|
* "$FOO" when there is no FOO, etc).
|
||||||
*/
|
*/
|
||||||
if ((lstat(words[0], &statb) == -1) ||
|
if ((lstat(words[0], &statb) == -1) ||
|
||||||
words[0][0] == '\0') {
|
words[0][0] == '\0') {
|
||||||
x_free_words(nwords, words);
|
x_free_words(nwords, words);
|
||||||
words = NULL;
|
words = NULL;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: buf_subs.c,v 1.32 2023/11/26 16:04:17 espie Exp $ */
|
/* $OpenBSD: buf_subs.c,v 1.33 2024/04/23 13:34:50 jsg Exp $ */
|
||||||
/* $NetBSD: buf_subs.c,v 1.5 1995/03/21 09:07:08 cgd Exp $ */
|
/* $NetBSD: buf_subs.c,v 1.5 1995/03/21 09:07:08 cgd Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
@ -765,7 +765,7 @@ cp_file(ARCHD *arcn, int fd1, int fd2)
|
|||||||
* check for holes in the source file. If none, we will use regular
|
* check for holes in the source file. If none, we will use regular
|
||||||
* write instead of file write.
|
* write instead of file write.
|
||||||
*/
|
*/
|
||||||
if (((off_t)(arcn->sb.st_blocks * BLKMULT)) >= arcn->sb.st_size)
|
if (((off_t)(arcn->sb.st_blocks * BLKMULT)) >= arcn->sb.st_size)
|
||||||
++no_hole;
|
++no_hole;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
dnl $OpenBSD: hardware,v 1.22 2023/10/25 15:51:45 deraadt Exp $
|
dnl $OpenBSD: hardware,v 1.23 2024/04/23 10:17:20 fcambus Exp $
|
||||||
The following machines are targeted by SecBSD/MACHINE:
|
The following machines are targeted by SecBSD/MACHINE:
|
||||||
|
|
||||||
Allwinner A64/H5/H6
|
Allwinner A64/H5/H6
|
||||||
@ -32,11 +32,14 @@ The following machines are targeted by SecBSD/MACHINE:
|
|||||||
Apple MacBook Pro (14-inch, M1 Pro/Max, 2021)
|
Apple MacBook Pro (14-inch, M1 Pro/Max, 2021)
|
||||||
Apple MacBook Pro (16-inch, M1 Pro/Max, 2021)
|
Apple MacBook Pro (16-inch, M1 Pro/Max, 2021)
|
||||||
Apple Studio (M1 Max/Ultra, 2022)
|
Apple Studio (M1 Max/Ultra, 2022)
|
||||||
|
Apple Mac mini (M2, 2023)
|
||||||
Apple MacBook Air (13-inch, M2, 2022)
|
Apple MacBook Air (13-inch, M2, 2022)
|
||||||
Apple MacBook Pro (13-inch, M2, 2022)
|
Apple MacBook Pro (13-inch, M2, 2022)
|
||||||
Apple MacBook Air (15-inch, M2, 2023)
|
Apple MacBook Air (15-inch, M2, 2023)
|
||||||
|
Apple Mac mini (M2 Pro, 2023)
|
||||||
Apple MacBook Pro (14-inch, M2 Pro/Max, 2023)
|
Apple MacBook Pro (14-inch, M2 Pro/Max, 2023)
|
||||||
Apple MacBook Pro (16-inch, M2 Pro/Max, 2023)
|
Apple MacBook Pro (16-inch, M2 Pro/Max, 2023)
|
||||||
|
Apple Studio (M2 Max/Ultra, 2023)
|
||||||
Broadcom BCM2837/BCM2711
|
Broadcom BCM2837/BCM2711
|
||||||
Raspberry Pi 3
|
Raspberry Pi 3
|
||||||
Raspberry Pi 3 Model B+
|
Raspberry Pi 3 Model B+
|
||||||
@ -49,6 +52,10 @@ The following machines are targeted by SecBSD/MACHINE:
|
|||||||
GL.iNet Brume
|
GL.iNet Brume
|
||||||
Marvell ARMADA 7K/8K
|
Marvell ARMADA 7K/8K
|
||||||
SolidRun/Marvell MACCHIATObin
|
SolidRun/Marvell MACCHIATObin
|
||||||
|
NXP i.MX 8M Quad/Mini/Plus
|
||||||
|
MNT Reform
|
||||||
|
SolidRun CuBox-M
|
||||||
|
SolidRun HummingBoard
|
||||||
Qualcomm Snapdragon 7cx (SC7180/SC7180P)
|
Qualcomm Snapdragon 7cx (SC7180/SC7180P)
|
||||||
Acer Aspire One
|
Acer Aspire One
|
||||||
Qualcomm Snapdragon 8cx Gen 3 (SC8280XP)
|
Qualcomm Snapdragon 8cx Gen 3 (SC8280XP)
|
||||||
@ -68,5 +75,9 @@ The following machines are targeted by SecBSD/MACHINE:
|
|||||||
ROC-RK3566-PC
|
ROC-RK3566-PC
|
||||||
NanoPi R5S
|
NanoPi R5S
|
||||||
Radxa ROCK 3A
|
Radxa ROCK 3A
|
||||||
|
Rockchip RK3588
|
||||||
|
Radxa ROCK 5B
|
||||||
|
NanoPi R6C
|
||||||
|
NanoPi R6S
|
||||||
Socionext SC2A11
|
Socionext SC2A11
|
||||||
Socionext SynQuacer-E Developerbox
|
Socionext SynQuacer-E Developerbox
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: ec_lib.c,v 1.66 2024/04/10 15:01:31 beck Exp $ */
|
/* $OpenBSD: ec_lib.c,v 1.67 2024/04/23 10:52:08 tb Exp $ */
|
||||||
/*
|
/*
|
||||||
* Originally written by Bodo Moeller for the OpenSSL project.
|
* Originally written by Bodo Moeller for the OpenSSL project.
|
||||||
*/
|
*/
|
||||||
@ -112,7 +112,6 @@ EC_GROUP_new(const EC_METHOD *meth)
|
|||||||
}
|
}
|
||||||
LCRYPTO_ALIAS(EC_GROUP_new);
|
LCRYPTO_ALIAS(EC_GROUP_new);
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
EC_GROUP_free(EC_GROUP *group)
|
EC_GROUP_free(EC_GROUP *group)
|
||||||
{
|
{
|
||||||
@ -188,12 +187,10 @@ EC_GROUP_copy(EC_GROUP *dest, const EC_GROUP *src)
|
|||||||
dest->seed_len = 0;
|
dest->seed_len = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return dest->meth->group_copy(dest, src);
|
return dest->meth->group_copy(dest, src);
|
||||||
}
|
}
|
||||||
LCRYPTO_ALIAS(EC_GROUP_copy);
|
LCRYPTO_ALIAS(EC_GROUP_copy);
|
||||||
|
|
||||||
|
|
||||||
EC_GROUP *
|
EC_GROUP *
|
||||||
EC_GROUP_dup(const EC_GROUP *a)
|
EC_GROUP_dup(const EC_GROUP *a)
|
||||||
{
|
{
|
||||||
@ -208,7 +205,6 @@ EC_GROUP_dup(const EC_GROUP *a)
|
|||||||
}
|
}
|
||||||
LCRYPTO_ALIAS(EC_GROUP_dup);
|
LCRYPTO_ALIAS(EC_GROUP_dup);
|
||||||
|
|
||||||
|
|
||||||
const EC_METHOD *
|
const EC_METHOD *
|
||||||
EC_GROUP_method_of(const EC_GROUP *group)
|
EC_GROUP_method_of(const EC_GROUP *group)
|
||||||
{
|
{
|
||||||
@ -216,7 +212,6 @@ EC_GROUP_method_of(const EC_GROUP *group)
|
|||||||
}
|
}
|
||||||
LCRYPTO_ALIAS(EC_GROUP_method_of);
|
LCRYPTO_ALIAS(EC_GROUP_method_of);
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
EC_METHOD_get_field_type(const EC_METHOD *meth)
|
EC_METHOD_get_field_type(const EC_METHOD *meth)
|
||||||
{
|
{
|
||||||
@ -358,7 +353,6 @@ EC_GROUP_set_generator(EC_GROUP *group, const EC_POINT *generator,
|
|||||||
}
|
}
|
||||||
LCRYPTO_ALIAS(EC_GROUP_set_generator);
|
LCRYPTO_ALIAS(EC_GROUP_set_generator);
|
||||||
|
|
||||||
|
|
||||||
const EC_POINT *
|
const EC_POINT *
|
||||||
EC_GROUP_get0_generator(const EC_GROUP *group)
|
EC_GROUP_get0_generator(const EC_GROUP *group)
|
||||||
{
|
{
|
||||||
@ -399,7 +393,6 @@ EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor, BN_CTX *ctx)
|
|||||||
}
|
}
|
||||||
LCRYPTO_ALIAS(EC_GROUP_get_cofactor);
|
LCRYPTO_ALIAS(EC_GROUP_get_cofactor);
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
EC_GROUP_set_curve_name(EC_GROUP *group, int nid)
|
EC_GROUP_set_curve_name(EC_GROUP *group, int nid)
|
||||||
{
|
{
|
||||||
@ -407,7 +400,6 @@ EC_GROUP_set_curve_name(EC_GROUP *group, int nid)
|
|||||||
}
|
}
|
||||||
LCRYPTO_ALIAS(EC_GROUP_set_curve_name);
|
LCRYPTO_ALIAS(EC_GROUP_set_curve_name);
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
EC_GROUP_get_curve_name(const EC_GROUP *group)
|
EC_GROUP_get_curve_name(const EC_GROUP *group)
|
||||||
{
|
{
|
||||||
@ -415,7 +407,6 @@ EC_GROUP_get_curve_name(const EC_GROUP *group)
|
|||||||
}
|
}
|
||||||
LCRYPTO_ALIAS(EC_GROUP_get_curve_name);
|
LCRYPTO_ALIAS(EC_GROUP_get_curve_name);
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
EC_GROUP_set_asn1_flag(EC_GROUP *group, int flag)
|
EC_GROUP_set_asn1_flag(EC_GROUP *group, int flag)
|
||||||
{
|
{
|
||||||
@ -423,7 +414,6 @@ EC_GROUP_set_asn1_flag(EC_GROUP *group, int flag)
|
|||||||
}
|
}
|
||||||
LCRYPTO_ALIAS(EC_GROUP_set_asn1_flag);
|
LCRYPTO_ALIAS(EC_GROUP_set_asn1_flag);
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
EC_GROUP_get_asn1_flag(const EC_GROUP *group)
|
EC_GROUP_get_asn1_flag(const EC_GROUP *group)
|
||||||
{
|
{
|
||||||
@ -431,7 +421,6 @@ EC_GROUP_get_asn1_flag(const EC_GROUP *group)
|
|||||||
}
|
}
|
||||||
LCRYPTO_ALIAS(EC_GROUP_get_asn1_flag);
|
LCRYPTO_ALIAS(EC_GROUP_get_asn1_flag);
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
EC_GROUP_set_point_conversion_form(EC_GROUP *group,
|
EC_GROUP_set_point_conversion_form(EC_GROUP *group,
|
||||||
point_conversion_form_t form)
|
point_conversion_form_t form)
|
||||||
@ -440,7 +429,6 @@ EC_GROUP_set_point_conversion_form(EC_GROUP *group,
|
|||||||
}
|
}
|
||||||
LCRYPTO_ALIAS(EC_GROUP_set_point_conversion_form);
|
LCRYPTO_ALIAS(EC_GROUP_set_point_conversion_form);
|
||||||
|
|
||||||
|
|
||||||
point_conversion_form_t
|
point_conversion_form_t
|
||||||
EC_GROUP_get_point_conversion_form(const EC_GROUP *group)
|
EC_GROUP_get_point_conversion_form(const EC_GROUP *group)
|
||||||
{
|
{
|
||||||
@ -448,7 +436,6 @@ EC_GROUP_get_point_conversion_form(const EC_GROUP *group)
|
|||||||
}
|
}
|
||||||
LCRYPTO_ALIAS(EC_GROUP_get_point_conversion_form);
|
LCRYPTO_ALIAS(EC_GROUP_get_point_conversion_form);
|
||||||
|
|
||||||
|
|
||||||
size_t
|
size_t
|
||||||
EC_GROUP_set_seed(EC_GROUP *group, const unsigned char *p, size_t len)
|
EC_GROUP_set_seed(EC_GROUP *group, const unsigned char *p, size_t len)
|
||||||
{
|
{
|
||||||
@ -469,7 +456,6 @@ EC_GROUP_set_seed(EC_GROUP *group, const unsigned char *p, size_t len)
|
|||||||
}
|
}
|
||||||
LCRYPTO_ALIAS(EC_GROUP_set_seed);
|
LCRYPTO_ALIAS(EC_GROUP_set_seed);
|
||||||
|
|
||||||
|
|
||||||
unsigned char *
|
unsigned char *
|
||||||
EC_GROUP_get0_seed(const EC_GROUP *group)
|
EC_GROUP_get0_seed(const EC_GROUP *group)
|
||||||
{
|
{
|
||||||
@ -477,7 +463,6 @@ EC_GROUP_get0_seed(const EC_GROUP *group)
|
|||||||
}
|
}
|
||||||
LCRYPTO_ALIAS(EC_GROUP_get0_seed);
|
LCRYPTO_ALIAS(EC_GROUP_get0_seed);
|
||||||
|
|
||||||
|
|
||||||
size_t
|
size_t
|
||||||
EC_GROUP_get_seed_len(const EC_GROUP *group)
|
EC_GROUP_get_seed_len(const EC_GROUP *group)
|
||||||
{
|
{
|
||||||
@ -564,7 +549,6 @@ EC_GROUP_get_degree(const EC_GROUP *group)
|
|||||||
}
|
}
|
||||||
LCRYPTO_ALIAS(EC_GROUP_get_degree);
|
LCRYPTO_ALIAS(EC_GROUP_get_degree);
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
EC_GROUP_check_discriminant(const EC_GROUP *group, BN_CTX *ctx_in)
|
EC_GROUP_check_discriminant(const EC_GROUP *group, BN_CTX *ctx_in)
|
||||||
{
|
{
|
||||||
@ -590,7 +574,6 @@ EC_GROUP_check_discriminant(const EC_GROUP *group, BN_CTX *ctx_in)
|
|||||||
}
|
}
|
||||||
LCRYPTO_ALIAS(EC_GROUP_check_discriminant);
|
LCRYPTO_ALIAS(EC_GROUP_check_discriminant);
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
EC_GROUP_cmp(const EC_GROUP *a, const EC_GROUP *b, BN_CTX *ctx)
|
EC_GROUP_cmp(const EC_GROUP *a, const EC_GROUP *b, BN_CTX *ctx)
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: inode.c,v 1.29 2019/07/01 07:13:44 kevlo Exp $ */
|
/* $OpenBSD: inode.c,v 1.30 2024/04/23 13:34:50 jsg Exp $ */
|
||||||
/* $NetBSD: inode.c,v 1.8 2000/01/28 16:01:46 bouyer Exp $ */
|
/* $NetBSD: inode.c,v 1.8 2000/01/28 16:01:46 bouyer Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -92,7 +92,7 @@ inosize(struct ext2fs_dinode *dp)
|
|||||||
size |= (u_int64_t)letoh32(dp->e2di_size_hi) << 32;
|
size |= (u_int64_t)letoh32(dp->e2di_size_hi) << 32;
|
||||||
if (size >= 0x80000000U)
|
if (size >= 0x80000000U)
|
||||||
(void)setlarge();
|
(void)setlarge();
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: growfs.c,v 1.56 2024/02/03 18:51:57 beck Exp $ */
|
/* $OpenBSD: growfs.c,v 1.57 2024/04/23 13:34:50 jsg Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000 Christoph Herrmann, Thomas-Henning von Kamptz
|
* Copyright (c) 2000 Christoph Herrmann, Thomas-Henning von Kamptz
|
||||||
* Copyright (c) 1980, 1989, 1993 The Regents of the University of California.
|
* Copyright (c) 1980, 1989, 1993 The Regents of the University of California.
|
||||||
@ -984,7 +984,7 @@ updcsloc(time_t utime, int fsi, int fso, unsigned int Nflag)
|
|||||||
(d % sblock.fs_fpg) / sblock.fs_frag);
|
(d % sblock.fs_fpg) / sblock.fs_frag);
|
||||||
acg.cg_cs.cs_nbfree++;
|
acg.cg_cs.cs_nbfree++;
|
||||||
sblock.fs_cstotal.cs_nbfree++;
|
sblock.fs_cstotal.cs_nbfree++;
|
||||||
if (sblock.fs_contigsumsize > 0) {
|
if (sblock.fs_contigsumsize > 0) {
|
||||||
setbit(cg_clustersfree(&acg),
|
setbit(cg_clustersfree(&acg),
|
||||||
(d % sblock.fs_fpg) / sblock.fs_frag);
|
(d % sblock.fs_fpg) / sblock.fs_frag);
|
||||||
/*
|
/*
|
||||||
@ -1896,7 +1896,7 @@ main(int argc, char **argv)
|
|||||||
sblock.fs_ncyl = sblock.fs_size * NSPF(&sblock) / sblock.fs_spc;
|
sblock.fs_ncyl = sblock.fs_size * NSPF(&sblock) / sblock.fs_spc;
|
||||||
if (sblock.fs_size * NSPF(&sblock) >
|
if (sblock.fs_size * NSPF(&sblock) >
|
||||||
sblock.fs_ncyl * sblock.fs_spc)
|
sblock.fs_ncyl * sblock.fs_spc)
|
||||||
sblock.fs_ncyl++;
|
sblock.fs_ncyl++;
|
||||||
}
|
}
|
||||||
sblock.fs_ncg = howmany(sblock.fs_size, sblock.fs_fpg);
|
sblock.fs_ncg = howmany(sblock.fs_size, sblock.fs_fpg);
|
||||||
if ((ino_t)sblock.fs_ncg * sblock.fs_ipg > UINT_MAX)
|
if ((ino_t)sblock.fs_ncg * sblock.fs_ipg > UINT_MAX)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: ifconfig.c,v 1.470 2023/11/23 03:38:34 dlg Exp $ */
|
/* $OpenBSD: ifconfig.c,v 1.471 2024/04/23 13:34:50 jsg Exp $ */
|
||||||
/* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */
|
/* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -6313,7 +6313,7 @@ umb_pinop(int op, int is_puk, const char *pin, const char *newpin)
|
|||||||
if (newpin) {
|
if (newpin) {
|
||||||
if ((mp.newpinlen = char_to_utf16(newpin, (uint16_t *)mp.newpin,
|
if ((mp.newpinlen = char_to_utf16(newpin, (uint16_t *)mp.newpin,
|
||||||
sizeof (mp.newpin))) == -1)
|
sizeof (mp.newpin))) == -1)
|
||||||
errx(1, "new PIN too long");
|
errx(1, "new PIN too long");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ioctl(sock, SIOCSUMBPARAM, (caddr_t)&ifr) == -1)
|
if (ioctl(sock, SIOCSUMBPARAM, (caddr_t)&ifr) == -1)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: ncheck_ffs.c,v 1.55 2019/07/03 03:24:02 deraadt Exp $ */
|
/* $OpenBSD: ncheck_ffs.c,v 1.56 2024/04/23 13:34:50 jsg Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1995, 1996 SigmaSoft, Th. Lockert <tholo@sigmasoft.com>
|
* Copyright (c) 1995, 1996 SigmaSoft, Th. Lockert <tholo@sigmasoft.com>
|
||||||
@ -462,7 +462,7 @@ searchdir(ufsino_t ino, daddr_t blkno, long size, off_t filesize,
|
|||||||
if (dp->d_name[0] == '.') {
|
if (dp->d_name[0] == '.') {
|
||||||
if (dp->d_name[1] == '\0' ||
|
if (dp->d_name[1] == '\0' ||
|
||||||
(dp->d_name[1] == '.' && dp->d_name[2] == '\0'))
|
(dp->d_name[1] == '.' && dp->d_name[2] == '\0'))
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (asprintf(&npath, "%s/%s", path, dp->d_name) == -1)
|
if (asprintf(&npath, "%s/%s", path, dp->d_name) == -1)
|
||||||
errx(1, "malloc");
|
errx(1, "malloc");
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: ping.c,v 1.248 2022/12/01 07:34:06 florian Exp $ */
|
/* $OpenBSD: ping.c,v 1.249 2024/04/23 13:34:50 jsg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
||||||
@ -378,7 +378,7 @@ main(int argc, char *argv[])
|
|||||||
case 'p': /* fill buffer with user pattern */
|
case 'p': /* fill buffer with user pattern */
|
||||||
options |= F_PINGFILLED;
|
options |= F_PINGFILLED;
|
||||||
fill((char *)datap, optarg);
|
fill((char *)datap, optarg);
|
||||||
break;
|
break;
|
||||||
case 'q':
|
case 'q':
|
||||||
options |= F_QUIET;
|
options |= F_QUIET;
|
||||||
break;
|
break;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: ahci.c,v 1.39 2023/02/03 18:31:16 miod Exp $ */
|
/* $OpenBSD: ahci.c,v 1.40 2024/04/23 13:09:21 jsg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2006 David Gwynne <dlg@openbsd.org>
|
* Copyright (c) 2006 David Gwynne <dlg@openbsd.org>
|
||||||
@ -267,7 +267,7 @@ noccc:
|
|||||||
*/
|
*/
|
||||||
sc->sc_ncmds = max(2, sc->sc_ncmds);
|
sc->sc_ncmds = max(2, sc->sc_ncmds);
|
||||||
for (i = 0; i < AHCI_MAX_PORTS; i++) {
|
for (i = 0; i < AHCI_MAX_PORTS; i++) {
|
||||||
if (!ISSET(pi, 1 << i)) {
|
if (!ISSET(pi, 1U << i)) {
|
||||||
/* dont allocate stuff if the port isnt implemented */
|
/* dont allocate stuff if the port isnt implemented */
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: ahcireg.h,v 1.5 2015/02/11 07:13:44 jmatthew Exp $ */
|
/* $OpenBSD: ahcireg.h,v 1.6 2024/04/23 13:09:21 jsg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2006 David Gwynne <dlg@openbsd.org>
|
* Copyright (c) 2006 David Gwynne <dlg@openbsd.org>
|
||||||
@ -42,7 +42,7 @@
|
|||||||
#define AHCI_REG_CAP_SMPS (1<<28) /* Mech Presence Switch */
|
#define AHCI_REG_CAP_SMPS (1<<28) /* Mech Presence Switch */
|
||||||
#define AHCI_REG_CAP_SSNTF (1<<29) /* SNotification Register */
|
#define AHCI_REG_CAP_SSNTF (1<<29) /* SNotification Register */
|
||||||
#define AHCI_REG_CAP_SNCQ (1<<30) /* Native Cmd Queuing */
|
#define AHCI_REG_CAP_SNCQ (1<<30) /* Native Cmd Queuing */
|
||||||
#define AHCI_REG_CAP_S64A (1<<31) /* 64bit Addressing */
|
#define AHCI_REG_CAP_S64A (1U<<31) /* 64bit Addressing */
|
||||||
#define AHCI_FMT_CAP "\020" "\040S64A" "\037NCQ" "\036SSNTF" \
|
#define AHCI_FMT_CAP "\020" "\040S64A" "\037NCQ" "\036SSNTF" \
|
||||||
"\035SMPS" "\034SSS" "\033SALP" "\032SAL" \
|
"\035SMPS" "\034SSS" "\033SALP" "\032SAL" \
|
||||||
"\031SCLO" "\024SNZO" "\023SAM" "\022SPM" \
|
"\031SCLO" "\024SNZO" "\023SAM" "\022SPM" \
|
||||||
@ -52,7 +52,7 @@
|
|||||||
#define AHCI_REG_GHC_HR (1<<0) /* HBA Reset */
|
#define AHCI_REG_GHC_HR (1<<0) /* HBA Reset */
|
||||||
#define AHCI_REG_GHC_IE (1<<1) /* Interrupt Enable */
|
#define AHCI_REG_GHC_IE (1<<1) /* Interrupt Enable */
|
||||||
#define AHCI_REG_GHC_MRSM (1<<2) /* MSI Revert to Single Msg */
|
#define AHCI_REG_GHC_MRSM (1<<2) /* MSI Revert to Single Msg */
|
||||||
#define AHCI_REG_GHC_AE (1<<31) /* AHCI Enable */
|
#define AHCI_REG_GHC_AE (1U<<31) /* AHCI Enable */
|
||||||
#define AHCI_FMT_GHC "\020" "\040AE" "\003MRSM" "\002IE" "\001HR"
|
#define AHCI_FMT_GHC "\020" "\040AE" "\003MRSM" "\002IE" "\001HR"
|
||||||
#define AHCI_REG_IS 0x008 /* Interrupt Status */
|
#define AHCI_REG_IS 0x008 /* Interrupt Status */
|
||||||
#define AHCI_REG_PI 0x00c /* Ports Implemented */
|
#define AHCI_REG_PI 0x00c /* Ports Implemented */
|
||||||
@ -103,7 +103,7 @@
|
|||||||
#define AHCI_PREG_IS_HBDS (1<<28) /* Host Bus Data Error */
|
#define AHCI_PREG_IS_HBDS (1<<28) /* Host Bus Data Error */
|
||||||
#define AHCI_PREG_IS_HBFS (1<<29) /* Host Bus Fatal Error */
|
#define AHCI_PREG_IS_HBFS (1<<29) /* Host Bus Fatal Error */
|
||||||
#define AHCI_PREG_IS_TFES (1<<30) /* Task File Error */
|
#define AHCI_PREG_IS_TFES (1<<30) /* Task File Error */
|
||||||
#define AHCI_PREG_IS_CPDS (1<<31) /* Cold Presence Detect */
|
#define AHCI_PREG_IS_CPDS (1U<<31) /* Cold Presence Detect */
|
||||||
#define AHCI_PFMT_IS "\20" "\040CPDS" "\037TFES" "\036HBFS" \
|
#define AHCI_PFMT_IS "\20" "\040CPDS" "\037TFES" "\036HBFS" \
|
||||||
"\035HBDS" "\034IFS" "\033INFS" "\031OFS" \
|
"\035HBDS" "\034IFS" "\033INFS" "\031OFS" \
|
||||||
"\030IPMS" "\027PRCS" "\010DMPS" "\006DPS" \
|
"\030IPMS" "\027PRCS" "\010DMPS" "\006DPS" \
|
||||||
@ -126,7 +126,7 @@
|
|||||||
#define AHCI_PREG_IE_HBDE (1<<28) /* Host Bus Data Error */
|
#define AHCI_PREG_IE_HBDE (1<<28) /* Host Bus Data Error */
|
||||||
#define AHCI_PREG_IE_HBFE (1<<29) /* Host Bus Fatal Error */
|
#define AHCI_PREG_IE_HBFE (1<<29) /* Host Bus Fatal Error */
|
||||||
#define AHCI_PREG_IE_TFEE (1<<30) /* Task File Error */
|
#define AHCI_PREG_IE_TFEE (1<<30) /* Task File Error */
|
||||||
#define AHCI_PREG_IE_CPDE (1<<31) /* Cold Presence Detect */
|
#define AHCI_PREG_IE_CPDE (1U<<31) /* Cold Presence Detect */
|
||||||
#define AHCI_PFMT_IE "\20" "\040CPDE" "\037TFEE" "\036HBFE" \
|
#define AHCI_PFMT_IE "\20" "\040CPDE" "\037TFEE" "\036HBFE" \
|
||||||
"\035HBDE" "\034IFE" "\033INFE" "\031OFE" \
|
"\035HBDE" "\034IFE" "\033INFE" "\031OFE" \
|
||||||
"\030IPME" "\027PRCE" "\010DMPE" "\007PCE" \
|
"\030IPME" "\027PRCE" "\010DMPE" "\007PCE" \
|
||||||
@ -275,7 +275,7 @@ struct ahci_prdt {
|
|||||||
u_int64_t dba;
|
u_int64_t dba;
|
||||||
u_int32_t reserved;
|
u_int32_t reserved;
|
||||||
u_int32_t flags;
|
u_int32_t flags;
|
||||||
#define AHCI_PRDT_FLAG_INTR (1<<31) /* interrupt on completion */
|
#define AHCI_PRDT_FLAG_INTR (1U<<31) /* interrupt on completion */
|
||||||
} __packed __aligned(8);
|
} __packed __aligned(8);
|
||||||
|
|
||||||
/* this makes ahci_cmd_table 512 bytes, supporting 128-byte alignment */
|
/* this makes ahci_cmd_table 512 bytes, supporting 128-byte alignment */
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: xhcireg.h,v 1.18 2022/01/09 05:43:02 jsg Exp $ */
|
/* $OpenBSD: xhcireg.h,v 1.19 2024/04/23 04:12:53 jsg Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2014 Martin Pieuchot. All rights reserved.
|
* Copyright (c) 2014 Martin Pieuchot. All rights reserved.
|
||||||
@ -335,7 +335,7 @@ struct xhci_inctx {
|
|||||||
|
|
||||||
struct xhci_trb {
|
struct xhci_trb {
|
||||||
uint64_t trb_paddr;
|
uint64_t trb_paddr;
|
||||||
#define XHCI_TRB_PORTID(x) (((x) & (0xff << 24)) >> 24) /* Port ID */
|
#define XHCI_TRB_PORTID(x) (((x) >> 24) & 0xff) /* Port ID */
|
||||||
#define XHCI_TRB_MAXSIZE (64 * 1024)
|
#define XHCI_TRB_MAXSIZE (64 * 1024)
|
||||||
|
|
||||||
uint32_t trb_status;
|
uint32_t trb_status;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: ostern.c,v 1.9 2019/01/17 06:15:44 tedu Exp $ */
|
/* $OpenBSD: ostern.c,v 1.10 2024/04/23 13:34:50 jsg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1996 Wolfram Schneider <wosch@FreeBSD.org>. Berlin.
|
* Copyright (c) 1996 Wolfram Schneider <wosch@FreeBSD.org>. Berlin.
|
||||||
@ -62,7 +62,7 @@ easter(int year) /* 0 ... abcd, NOT since 1900 */
|
|||||||
e_q++;
|
e_q++;
|
||||||
|
|
||||||
if (e_n == 4)
|
if (e_n == 4)
|
||||||
e_q += 31;
|
e_q += 31;
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
printf("%d %d %d %d %d %d %d %d %d %d %d %d %d %d %d\n",
|
printf("%d %d %d %d %d %d %d %d %d %d %d %d %d %d %d\n",
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: dc.c,v 1.20 2017/12/06 13:48:05 otto Exp $ */
|
/* $OpenBSD: dc.c,v 1.21 2024/04/23 13:34:50 jsg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2003, Otto Moerbeek <otto@drijf.net>
|
* Copyright (c) 2003, Otto Moerbeek <otto@drijf.net>
|
||||||
@ -110,7 +110,7 @@ dc_main(int argc, char *argv[])
|
|||||||
* BSD and Solaris dc(1) continue with stdin after processing
|
* BSD and Solaris dc(1) continue with stdin after processing
|
||||||
* the file given as the argument. We follow GNU dc(1).
|
* the file given as the argument. We follow GNU dc(1).
|
||||||
*/
|
*/
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
src_setstream(&src, stdin);
|
src_setstream(&src, stdin);
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: dighost.c,v 1.37 2020/12/21 11:41:08 florian Exp $ */
|
/* $Id: dighost.c,v 1.38 2024/04/23 13:34:50 jsg Exp $ */
|
||||||
|
|
||||||
/*! \file
|
/*! \file
|
||||||
* \note
|
* \note
|
||||||
@ -3643,15 +3643,14 @@ recv_done(isc_task_t *task, isc_event_t *event) {
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
if (msg->rcode == dns_rcode_noerror || l->origin == NULL) {
|
if (msg->rcode == dns_rcode_noerror || l->origin == NULL) {
|
||||||
|
dighost_received(b->used, &sevent->address, query);
|
||||||
dighost_received(b->used, &sevent->address, query);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!query->lookup->ns_search_only)
|
if (!query->lookup->ns_search_only)
|
||||||
query->lookup->pending = 0;
|
query->lookup->pending = 0;
|
||||||
if (!query->lookup->ns_search_only ||
|
if (!query->lookup->ns_search_only ||
|
||||||
query->lookup->trace_root || docancel) {
|
query->lookup->trace_root || docancel) {
|
||||||
dns_message_destroy(&msg);
|
dns_message_destroy(&msg);
|
||||||
|
|
||||||
cancel_lookup(l);
|
cancel_lookup(l);
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: rdata.c,v 1.35 2022/07/03 12:07:52 florian Exp $ */
|
/* $Id: rdata.c,v 1.36 2024/04/23 13:34:50 jsg Exp $ */
|
||||||
|
|
||||||
/*! \file */
|
/*! \file */
|
||||||
|
|
||||||
@ -1430,25 +1430,24 @@ byte_btoa(int c, isc_buffer_t *target, struct state *state) {
|
|||||||
tr.base[0] = 'z';
|
tr.base[0] = 'z';
|
||||||
isc_buffer_add(target, 1);
|
isc_buffer_add(target, 1);
|
||||||
} else {
|
} else {
|
||||||
register int tmp = 0;
|
register int tmp = 0;
|
||||||
register int32_t tmpword = word;
|
register int32_t tmpword = word;
|
||||||
|
|
||||||
if (tmpword < 0) {
|
if (tmpword < 0) {
|
||||||
/*
|
/*
|
||||||
* Because some don't support u_long.
|
* Because some don't support u_long.
|
||||||
*/
|
*/
|
||||||
tmp = 32;
|
tmp = 32;
|
||||||
tmpword -= (int32_t)(85 * 85 * 85 * 85 * 32);
|
tmpword -= (int32_t)(85 * 85 * 85 * 85 * 32);
|
||||||
}
|
}
|
||||||
if (tmpword < 0) {
|
if (tmpword < 0) {
|
||||||
tmp = 64;
|
tmp = 64;
|
||||||
tmpword -= (int32_t)(85 * 85 * 85 * 85 * 32);
|
tmpword -= (int32_t)(85 * 85 * 85 * 85 * 32);
|
||||||
}
|
}
|
||||||
if (tr.length < 5)
|
if (tr.length < 5)
|
||||||
return (ISC_R_NOSPACE);
|
return (ISC_R_NOSPACE);
|
||||||
tr.base[0] = atob_digits[(tmpword /
|
tr.base[0] = atob_digits[(tmpword /
|
||||||
(int32_t)(85 * 85 * 85 * 85))
|
(int32_t)(85 * 85 * 85 * 85)) + tmp];
|
||||||
+ tmp];
|
|
||||||
tmpword %= (int32_t)(85 * 85 * 85 * 85);
|
tmpword %= (int32_t)(85 * 85 * 85 * 85);
|
||||||
tr.base[1] = atob_digits[tmpword / (85 * 85 * 85)];
|
tr.base[1] = atob_digits[tmpword / (85 * 85 * 85)];
|
||||||
tmpword %= (85 * 85 * 85);
|
tmpword %= (85 * 85 * 85);
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: tkey_249.c,v 1.13 2020/09/14 08:40:43 florian Exp $ */
|
/* $Id: tkey_249.c,v 1.14 2024/04/23 13:34:50 jsg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Reviewed: Thu Mar 16 17:35:30 PST 2000 by halley.
|
* Reviewed: Thu Mar 16 17:35:30 PST 2000 by halley.
|
||||||
@ -127,18 +127,18 @@ totext_tkey(ARGS_TOTEXT) {
|
|||||||
*/
|
*/
|
||||||
REQUIRE(n <= sr.length);
|
REQUIRE(n <= sr.length);
|
||||||
if (n != 0U) {
|
if (n != 0U) {
|
||||||
dr = sr;
|
dr = sr;
|
||||||
dr.length = n;
|
dr.length = n;
|
||||||
if ((tctx->flags & DNS_STYLEFLAG_MULTILINE) != 0)
|
if ((tctx->flags & DNS_STYLEFLAG_MULTILINE) != 0)
|
||||||
RETERR(isc_str_tobuffer(" (", target));
|
RETERR(isc_str_tobuffer(" (", target));
|
||||||
RETERR(isc_str_tobuffer(tctx->linebreak, target));
|
RETERR(isc_str_tobuffer(tctx->linebreak, target));
|
||||||
if (tctx->width == 0) /* No splitting */
|
if (tctx->width == 0) /* No splitting */
|
||||||
RETERR(isc_base64_totext(&dr, 60, "", target));
|
RETERR(isc_base64_totext(&dr, 60, "", target));
|
||||||
else
|
else
|
||||||
RETERR(isc_base64_totext(&dr, tctx->width - 2,
|
RETERR(isc_base64_totext(&dr, tctx->width - 2,
|
||||||
tctx->linebreak, target));
|
tctx->linebreak, target));
|
||||||
if ((tctx->flags & DNS_STYLEFLAG_MULTILINE) != 0)
|
if ((tctx->flags & DNS_STYLEFLAG_MULTILINE) != 0)
|
||||||
RETERR(isc_str_tobuffer(" )", target));
|
RETERR(isc_str_tobuffer(" )", target));
|
||||||
}
|
}
|
||||||
return (ISC_R_SUCCESS);
|
return (ISC_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* $Id: tsig.c,v 1.14 2020/09/14 08:40:43 florian Exp $
|
* $Id: tsig.c,v 1.15 2024/04/23 13:34:50 jsg Exp $
|
||||||
*/
|
*/
|
||||||
/*! \file */
|
/*! \file */
|
||||||
|
|
||||||
@ -295,8 +295,8 @@ dns_tsigkey_create(dns_name_t *name, dns_name_t *algorithm,
|
|||||||
DNS_KEYOWNER_ENTITY,
|
DNS_KEYOWNER_ENTITY,
|
||||||
DNS_KEYPROTO_DNSSEC,
|
DNS_KEYPROTO_DNSSEC,
|
||||||
&b, &dstkey);
|
&b, &dstkey);
|
||||||
if (result != ISC_R_SUCCESS)
|
if (result != ISC_R_SUCCESS)
|
||||||
return (result);
|
return (result);
|
||||||
}
|
}
|
||||||
} else if (dns_name_equal(algorithm, DNS_TSIG_HMACSHA224_NAME)) {
|
} else if (dns_name_equal(algorithm, DNS_TSIG_HMACSHA224_NAME)) {
|
||||||
if (secret != NULL) {
|
if (secret != NULL) {
|
||||||
@ -308,8 +308,8 @@ dns_tsigkey_create(dns_name_t *name, dns_name_t *algorithm,
|
|||||||
DNS_KEYOWNER_ENTITY,
|
DNS_KEYOWNER_ENTITY,
|
||||||
DNS_KEYPROTO_DNSSEC,
|
DNS_KEYPROTO_DNSSEC,
|
||||||
&b, &dstkey);
|
&b, &dstkey);
|
||||||
if (result != ISC_R_SUCCESS)
|
if (result != ISC_R_SUCCESS)
|
||||||
return (result);
|
return (result);
|
||||||
}
|
}
|
||||||
} else if (dns_name_equal(algorithm, DNS_TSIG_HMACSHA256_NAME)) {
|
} else if (dns_name_equal(algorithm, DNS_TSIG_HMACSHA256_NAME)) {
|
||||||
if (secret != NULL) {
|
if (secret != NULL) {
|
||||||
@ -321,8 +321,8 @@ dns_tsigkey_create(dns_name_t *name, dns_name_t *algorithm,
|
|||||||
DNS_KEYOWNER_ENTITY,
|
DNS_KEYOWNER_ENTITY,
|
||||||
DNS_KEYPROTO_DNSSEC,
|
DNS_KEYPROTO_DNSSEC,
|
||||||
&b, &dstkey);
|
&b, &dstkey);
|
||||||
if (result != ISC_R_SUCCESS)
|
if (result != ISC_R_SUCCESS)
|
||||||
return (result);
|
return (result);
|
||||||
}
|
}
|
||||||
} else if (dns_name_equal(algorithm, DNS_TSIG_HMACSHA384_NAME)) {
|
} else if (dns_name_equal(algorithm, DNS_TSIG_HMACSHA384_NAME)) {
|
||||||
if (secret != NULL) {
|
if (secret != NULL) {
|
||||||
@ -334,8 +334,8 @@ dns_tsigkey_create(dns_name_t *name, dns_name_t *algorithm,
|
|||||||
DNS_KEYOWNER_ENTITY,
|
DNS_KEYOWNER_ENTITY,
|
||||||
DNS_KEYPROTO_DNSSEC,
|
DNS_KEYPROTO_DNSSEC,
|
||||||
&b, &dstkey);
|
&b, &dstkey);
|
||||||
if (result != ISC_R_SUCCESS)
|
if (result != ISC_R_SUCCESS)
|
||||||
return (result);
|
return (result);
|
||||||
}
|
}
|
||||||
} else if (dns_name_equal(algorithm, DNS_TSIG_HMACSHA512_NAME)) {
|
} else if (dns_name_equal(algorithm, DNS_TSIG_HMACSHA512_NAME)) {
|
||||||
if (secret != NULL) {
|
if (secret != NULL) {
|
||||||
@ -347,8 +347,8 @@ dns_tsigkey_create(dns_name_t *name, dns_name_t *algorithm,
|
|||||||
DNS_KEYOWNER_ENTITY,
|
DNS_KEYOWNER_ENTITY,
|
||||||
DNS_KEYPROTO_DNSSEC,
|
DNS_KEYPROTO_DNSSEC,
|
||||||
&b, &dstkey);
|
&b, &dstkey);
|
||||||
if (result != ISC_R_SUCCESS)
|
if (result != ISC_R_SUCCESS)
|
||||||
return (result);
|
return (result);
|
||||||
}
|
}
|
||||||
} else if (length > 0)
|
} else if (length > 0)
|
||||||
return (DNS_R_BADALG);
|
return (DNS_R_BADALG);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: fetch.c,v 1.217 2024/04/17 09:51:18 tb Exp $ */
|
/* $OpenBSD: fetch.c,v 1.218 2024/04/23 08:50:38 sthen Exp $ */
|
||||||
/* $NetBSD: fetch.c,v 1.14 1997/08/18 10:20:20 lukem Exp $ */
|
/* $NetBSD: fetch.c,v 1.14 1997/08/18 10:20:20 lukem Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
@ -1725,11 +1725,13 @@ proxy_connect(int socket, char *host, char *cookie)
|
|||||||
|
|
||||||
if (cookie) {
|
if (cookie) {
|
||||||
l = asprintf(&connstr, "CONNECT %s:%s HTTP/1.1\r\n"
|
l = asprintf(&connstr, "CONNECT %s:%s HTTP/1.1\r\n"
|
||||||
|
"Host: %s:%s\r\n"
|
||||||
"Proxy-Authorization: Basic %s\r\n%s\r\n\r\n",
|
"Proxy-Authorization: Basic %s\r\n%s\r\n\r\n",
|
||||||
host, port, cookie, HTTP_USER_AGENT);
|
host, port, host, port, cookie, HTTP_USER_AGENT);
|
||||||
} else {
|
} else {
|
||||||
l = asprintf(&connstr, "CONNECT %s:%s HTTP/1.1\r\n%s\r\n\r\n",
|
l = asprintf(&connstr, "CONNECT %s:%s HTTP/1.1\r\n"
|
||||||
host, port, HTTP_USER_AGENT);
|
"Host: %s:%s\r\n%s\r\n\r\n",
|
||||||
|
host, port, host, port, HTTP_USER_AGENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (l == -1)
|
if (l == -1)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: expandchildren.c,v 1.3 2023/09/04 11:35:11 espie Exp $ */
|
/* $OpenBSD: expandchildren.c,v 1.4 2024/04/23 13:34:50 jsg Exp $ */
|
||||||
/* $NetBSD: suff.c,v 1.13 1996/11/06 17:59:25 christos Exp $ */
|
/* $NetBSD: suff.c,v 1.13 1996/11/06 17:59:25 christos Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -133,13 +133,13 @@ ExpandVarChildren(LstNode after, GNode *cgn, GNode *pgn)
|
|||||||
cp2+=2;
|
cp2+=2;
|
||||||
else
|
else
|
||||||
cp2++;
|
cp2++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cp2 != start) {
|
if (cp2 != start) {
|
||||||
/* Stuff left over -- add it to the list too. */
|
/* Stuff left over -- add it to the list too. */
|
||||||
gn = Targ_FindNodei(start, cp2, TARG_CREATE);
|
gn = Targ_FindNodei(start, cp2, TARG_CREATE);
|
||||||
Lst_AtEnd(&members, gn);
|
Lst_AtEnd(&members, gn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* Add all elements of the members list to the parent node. */
|
/* Add all elements of the members list to the parent node. */
|
||||||
while ((gn = Lst_DeQueue(&members)) != NULL) {
|
while ((gn = Lst_DeQueue(&members)) != NULL) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: file.c,v 1.103 2023/03/08 04:43:11 guenther Exp $ */
|
/* $OpenBSD: file.c,v 1.104 2024/04/23 13:34:50 jsg Exp $ */
|
||||||
|
|
||||||
/* This file is in the public domain. */
|
/* This file is in the public domain. */
|
||||||
|
|
||||||
@ -406,8 +406,8 @@ retry:
|
|||||||
dobeep();
|
dobeep();
|
||||||
ewprintf("Could not allocate %d bytes",
|
ewprintf("Could not allocate %d bytes",
|
||||||
newsize);
|
newsize);
|
||||||
s = FIOERR;
|
s = FIOERR;
|
||||||
goto endoffile;
|
goto endoffile;
|
||||||
}
|
}
|
||||||
bcopy(line, cp, linesize);
|
bcopy(line, cp, linesize);
|
||||||
free(line);
|
free(line);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: docmd.c,v 1.35 2022/01/28 06:18:41 guenther Exp $ */
|
/* $OpenBSD: docmd.c,v 1.36 2024/04/23 13:34:50 jsg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1983 Regents of the University of California.
|
* Copyright (c) 1983 Regents of the University of California.
|
||||||
@ -485,26 +485,26 @@ doarrow(struct cmd *cmd, char **filev)
|
|||||||
* b) basename of destination in "install" directive is "."
|
* b) basename of destination in "install" directive is "."
|
||||||
* (e.g. install /tmp/.;)
|
* (e.g. install /tmp/.;)
|
||||||
* c) name on left side of -> directive is a directory on local system.
|
* c) name on left side of -> directive is a directory on local system.
|
||||||
*
|
*
|
||||||
* We need 2 destdir flags (destdir and ddir) because single directory
|
* We need 2 destdir flags (destdir and ddir) because single directory
|
||||||
* source is handled differently. In this case, ddir is 0 (which
|
* source is handled differently. In this case, ddir is 0 (which
|
||||||
* tells install() not to send DIRTARGET directive to remote rdistd)
|
* tells install() not to send DIRTARGET directive to remote rdistd)
|
||||||
* and destdir is 1 (which tells remfilename() how to build the FILE
|
* and destdir is 1 (which tells remfilename() how to build the FILE
|
||||||
* variables correctly). In every other case, destdir and ddir will
|
* variables correctly). In every other case, destdir and ddir will
|
||||||
* have the same value.
|
* have the same value.
|
||||||
*/
|
*/
|
||||||
ddir = files->n_next != NULL; /* destination is a directory */
|
ddir = files->n_next != NULL; /* destination is a directory */
|
||||||
if (!ddir) {
|
if (!ddir) {
|
||||||
struct stat s;
|
struct stat s;
|
||||||
int isadir = 0;
|
int isadir = 0;
|
||||||
|
|
||||||
if (lstat(files->n_name, &s) == 0)
|
if (lstat(files->n_name, &s) == 0)
|
||||||
isadir = S_ISDIR(s.st_mode);
|
isadir = S_ISDIR(s.st_mode);
|
||||||
if (!isadir && sc->sc_name && *sc->sc_name)
|
if (!isadir && sc->sc_name && *sc->sc_name)
|
||||||
ddir = !strcmp(xbasename(sc->sc_name),".");
|
ddir = !strcmp(xbasename(sc->sc_name),".");
|
||||||
destdir = isadir | ddir;
|
destdir = isadir | ddir;
|
||||||
} else
|
} else
|
||||||
destdir = ddir;
|
destdir = ddir;
|
||||||
|
|
||||||
debugmsg(DM_MISC,
|
debugmsg(DM_MISC,
|
||||||
"Debug files->n_next= %p, destdir=%d, ddir=%d",
|
"Debug files->n_next= %p, destdir=%d, ddir=%d",
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: snmpc.c,v 1.40 2022/12/26 19:16:03 jmc Exp $ */
|
/* $OpenBSD: snmpc.c,v 1.41 2024/04/23 13:34:50 jsg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2019 Martijn van Duren <martijn@openbsd.org>
|
* Copyright (c) 2019 Martijn van Duren <martijn@openbsd.org>
|
||||||
@ -233,7 +233,7 @@ main(int argc, char *argv[])
|
|||||||
errx(1, "-3K");
|
errx(1, "-3K");
|
||||||
}
|
}
|
||||||
privkeylevel = USM_KEY_LOCALIZED;
|
privkeylevel = USM_KEY_LOCALIZED;
|
||||||
break;
|
break;
|
||||||
case 'k':
|
case 'k':
|
||||||
authkey = snmpc_hex2bin(optarg, &authkeylen);
|
authkey = snmpc_hex2bin(optarg, &authkeylen);
|
||||||
if (authkey == NULL) {
|
if (authkey == NULL) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: sshconnect.c,v 1.366 2024/01/11 01:45:36 djm Exp $ */
|
/* $OpenBSD: sshconnect.c,v 1.367 2024/04/23 13:34:50 jsg Exp $ */
|
||||||
/*
|
/*
|
||||||
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
||||||
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
||||||
@ -609,7 +609,7 @@ get_hostfile_hostname_ipaddr(char *hostname, struct sockaddr *hostaddr,
|
|||||||
if (options.proxy_command == NULL) {
|
if (options.proxy_command == NULL) {
|
||||||
if (getnameinfo(hostaddr, hostaddr->sa_len,
|
if (getnameinfo(hostaddr, hostaddr->sa_len,
|
||||||
ntop, sizeof(ntop), NULL, 0, NI_NUMERICHOST) != 0)
|
ntop, sizeof(ntop), NULL, 0, NI_NUMERICHOST) != 0)
|
||||||
fatal_f("getnameinfo failed");
|
fatal_f("getnameinfo failed");
|
||||||
*hostfile_ipaddr = put_host_port(ntop, port);
|
*hostfile_ipaddr = put_host_port(ntop, port);
|
||||||
} else {
|
} else {
|
||||||
*hostfile_ipaddr = xstrdup("<no hostip for proxy "
|
*hostfile_ipaddr = xstrdup("<no hostip for proxy "
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: telnet.c,v 1.36 2019/07/11 03:54:27 deraadt Exp $ */
|
/* $OpenBSD: telnet.c,v 1.37 2024/04/23 13:34:51 jsg Exp $ */
|
||||||
/* $NetBSD: telnet.c,v 1.7 1996/02/28 21:04:15 thorpej Exp $ */
|
/* $NetBSD: telnet.c,v 1.7 1996/02/28 21:04:15 thorpej Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -1359,7 +1359,7 @@ env_opt_add(char *ep)
|
|||||||
opt_add(c);
|
opt_add(c);
|
||||||
}
|
}
|
||||||
if ((ep = vp)) {
|
if ((ep = vp)) {
|
||||||
opt_add(NEW_ENV_VALUE);
|
opt_add(NEW_ENV_VALUE);
|
||||||
vp = NULL;
|
vp = NULL;
|
||||||
} else
|
} else
|
||||||
break;
|
break;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: tftpsubs.c,v 1.15 2012/05/01 04:23:21 gsoares Exp $ */
|
/* $OpenBSD: tftpsubs.c,v 1.16 2024/04/23 13:34:51 jsg Exp $ */
|
||||||
/* $NetBSD: tftpsubs.c,v 1.3 1994/12/08 09:51:31 jtc Exp $ */
|
/* $NetBSD: tftpsubs.c,v 1.3 1994/12/08 09:51:31 jtc Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -165,7 +165,7 @@ read_ahead(FILE *file, int convert, int segment_size)
|
|||||||
newline = 1;
|
newline = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*p++ = c;
|
*p++ = c;
|
||||||
}
|
}
|
||||||
b->counter = (int)(p - dp->th_data);
|
b->counter = (int)(p - dp->th_data);
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: cmd-queue.c,v 1.115 2023/09/15 06:31:49 nicm Exp $ */
|
/* $OpenBSD: cmd-queue.c,v 1.116 2024/04/23 13:34:51 jsg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2013 Nicholas Marriott <nicholas.marriott@gmail.com>
|
* Copyright (c) 2013 Nicholas Marriott <nicholas.marriott@gmail.com>
|
||||||
@ -806,10 +806,10 @@ cmdq_running(struct client *c)
|
|||||||
struct cmdq_list *queue = cmdq_get(c);
|
struct cmdq_list *queue = cmdq_get(c);
|
||||||
|
|
||||||
if (queue->item == NULL)
|
if (queue->item == NULL)
|
||||||
return (NULL);
|
return (NULL);
|
||||||
if (queue->item->flags & CMDQ_WAITING)
|
if (queue->item->flags & CMDQ_WAITING)
|
||||||
return (NULL);
|
return (NULL);
|
||||||
return (queue->item);
|
return (queue->item);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Print a guard line. */
|
/* Print a guard line. */
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: window-copy.c,v 1.347 2024/03/26 10:20:20 nicm Exp $ */
|
/* $OpenBSD: window-copy.c,v 1.348 2024/04/23 13:34:51 jsg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
|
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
|
||||||
@ -4694,7 +4694,7 @@ window_copy_get_selection(struct window_mode_entry *wme, size_t *len)
|
|||||||
if (keys == MODEKEY_EMACS || lastex <= ey_last) {
|
if (keys == MODEKEY_EMACS || lastex <= ey_last) {
|
||||||
if (~grid_get_line(data->backing->grid, ey)->flags &
|
if (~grid_get_line(data->backing->grid, ey)->flags &
|
||||||
GRID_LINE_WRAPPED || lastex != ey_last)
|
GRID_LINE_WRAPPED || lastex != ey_last)
|
||||||
off -= 1;
|
off -= 1;
|
||||||
}
|
}
|
||||||
*len = off;
|
*len = off;
|
||||||
return (buf);
|
return (buf);
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* from: @(#)amq_subr.c 8.1 (Berkeley) 6/6/93
|
* from: @(#)amq_subr.c 8.1 (Berkeley) 6/6/93
|
||||||
* $Id: amq_subr.c,v 1.19 2022/12/28 21:30:15 jmc Exp $
|
* $Id: amq_subr.c,v 1.20 2024/04/23 13:34:51 jsg Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -300,7 +300,7 @@ xdr_amq_mount_stats(XDR *xdrs, amq_mount_stats *objp)
|
|||||||
bool_t
|
bool_t
|
||||||
xdr_amq_mount_tree_list(XDR *xdrs, amq_mount_tree_list *objp)
|
xdr_amq_mount_tree_list(XDR *xdrs, amq_mount_tree_list *objp)
|
||||||
{
|
{
|
||||||
if (!xdr_array(xdrs, (char **)&objp->amq_mount_tree_list_val, (u_int *)&objp->amq_mount_tree_list_len, ~0, sizeof(amq_mount_tree_p), xdr_amq_mount_tree_p)) {
|
if (!xdr_array(xdrs, (char **)&objp->amq_mount_tree_list_val, (u_int *)&objp->amq_mount_tree_list_len, ~0, sizeof(amq_mount_tree_p), xdr_amq_mount_tree_p)) {
|
||||||
return (FALSE);
|
return (FALSE);
|
||||||
}
|
}
|
||||||
return (TRUE);
|
return (TRUE);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: nfs_ops.c,v 1.27 2021/10/21 10:55:56 deraadt Exp $ */
|
/* $OpenBSD: nfs_ops.c,v 1.28 2024/04/23 13:34:51 jsg Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1990 Jan-Simon Pendry
|
* Copyright (c) 1990 Jan-Simon Pendry
|
||||||
@ -377,7 +377,7 @@ call_mountd(fh_cache *fp, u_long proc, fwd_fun f, void *wchan)
|
|||||||
* to be redone. The quick solution here is to invalidate the MOUNTD
|
* to be redone. The quick solution here is to invalidate the MOUNTD
|
||||||
* port.
|
* port.
|
||||||
*/
|
*/
|
||||||
fp->fh_sin.sin_port = 0;
|
fp->fh_sin.sin_port = 0;
|
||||||
|
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: dvmrpe.c,v 1.23 2021/01/19 12:29:46 claudio Exp $ */
|
/* $OpenBSD: dvmrpe.c,v 1.24 2024/04/23 13:34:51 jsg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
|
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
|
||||||
@ -314,7 +314,7 @@ dvmrpe_dispatch_rde(int fd, short event, void *bula)
|
|||||||
ssize_t n;
|
ssize_t n;
|
||||||
int shut = 0;
|
int shut = 0;
|
||||||
|
|
||||||
if (event & EV_READ) {
|
if (event & EV_READ) {
|
||||||
if ((n = imsg_read(ibuf)) == -1 && errno != EAGAIN)
|
if ((n = imsg_read(ibuf)) == -1 && errno != EAGAIN)
|
||||||
fatal("imsg_read error");
|
fatal("imsg_read error");
|
||||||
if (n == 0) /* connection closed */
|
if (n == 0) /* connection closed */
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: probe.c,v 1.5 2023/06/26 10:08:56 claudio Exp $ */
|
/* $OpenBSD: probe.c,v 1.6 2024/04/23 13:34:51 jsg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2005, 2006 Esben Norby <norby@openbsd.org>
|
* Copyright (c) 2005, 2006 Esben Norby <norby@openbsd.org>
|
||||||
@ -115,7 +115,7 @@ recv_probe(struct iface *iface, struct in_addr src, u_int32_t src_ip,
|
|||||||
if (nbr_id == iface->addr.s_addr) {
|
if (nbr_id == iface->addr.s_addr) {
|
||||||
/* seen myself */
|
/* seen myself */
|
||||||
if (nbr->state < NBR_STA_2_WAY)
|
if (nbr->state < NBR_STA_2_WAY)
|
||||||
nbr_fsm(nbr, NBR_EVT_2_WAY_RCVD);
|
nbr_fsm(nbr, NBR_EVT_2_WAY_RCVD);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
buf += sizeof(nbr_id);
|
buf += sizeof(nbr_id);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: ifstated.c,v 1.67 2022/12/28 21:30:16 jmc Exp $ */
|
/* $OpenBSD: ifstated.c,v 1.68 2024/04/23 13:34:51 jsg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2004 Marco Pfatschbacher <mpf@openbsd.org>
|
* Copyright (c) 2004 Marco Pfatschbacher <mpf@openbsd.org>
|
||||||
@ -548,7 +548,7 @@ adjust_expressions(struct ifsd_expression_list *expressions, int depth)
|
|||||||
}
|
}
|
||||||
if (expression->parent != NULL) {
|
if (expression->parent != NULL) {
|
||||||
if (TAILQ_EMPTY(&nexpressions))
|
if (TAILQ_EMPTY(&nexpressions))
|
||||||
te = NULL;
|
te = NULL;
|
||||||
TAILQ_FOREACH(te, &nexpressions, eval)
|
TAILQ_FOREACH(te, &nexpressions, eval)
|
||||||
if (expression->parent == te)
|
if (expression->parent == te)
|
||||||
break;
|
break;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: lde.c,v 1.77 2023/12/14 11:10:19 claudio Exp $ */
|
/* $OpenBSD: lde.c,v 1.78 2024/04/23 13:34:51 jsg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2013, 2016 Renato Westphal <renato@openbsd.org>
|
* Copyright (c) 2013, 2016 Renato Westphal <renato@openbsd.org>
|
||||||
@ -1163,7 +1163,7 @@ lde_nbr_clear(void)
|
|||||||
{
|
{
|
||||||
struct lde_nbr *ln;
|
struct lde_nbr *ln;
|
||||||
|
|
||||||
while ((ln = RB_ROOT(&lde_nbrs)) != NULL)
|
while ((ln = RB_ROOT(&lde_nbrs)) != NULL)
|
||||||
lde_nbr_del(ln);
|
lde_nbr_del(ln);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: displayq.c,v 1.40 2018/04/26 12:42:51 guenther Exp $ */
|
/* $OpenBSD: displayq.c,v 1.41 2024/04/23 13:34:51 jsg Exp $ */
|
||||||
/* $NetBSD: displayq.c,v 1.21 2001/08/30 00:51:50 itojun Exp $ */
|
/* $NetBSD: displayq.c,v 1.21 2001/08/30 00:51:50 itojun Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -462,9 +462,9 @@ dump(char *nfile, char *file, int copies)
|
|||||||
* Print as many files as will fit
|
* Print as many files as will fit
|
||||||
* (leaving room for the total size)
|
* (leaving room for the total size)
|
||||||
*/
|
*/
|
||||||
fill = first ? 0 : 2; /* fill space for ``, '' */
|
fill = first ? 0 : 2; /* fill space for ``, '' */
|
||||||
if (((n = strlen(nfile)) + col + fill) >=
|
if (((n = strlen(nfile)) + col + fill) >=
|
||||||
(termwidth - (80 - SIZCOL)) - 4) {
|
(termwidth - (80 - SIZCOL)) - 4) {
|
||||||
if (col < (termwidth - (80 - SIZCOL))) {
|
if (col < (termwidth - (80 - SIZCOL))) {
|
||||||
printf(" ..."), col += 4;
|
printf(" ..."), col += 4;
|
||||||
blankfill(termwidth - (80 - SIZCOL));
|
blankfill(termwidth - (80 - SIZCOL));
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: msdosfs_fat.c,v 1.7 2022/01/11 05:34:33 jsg Exp $ */
|
/* $OpenBSD: msdosfs_fat.c,v 1.8 2024/04/23 13:34:51 jsg Exp $ */
|
||||||
/* $NetBSD: msdosfs_fat.c,v 1.31 2016/05/07 16:43:02 mlelstv Exp $ */
|
/* $NetBSD: msdosfs_fat.c,v 1.31 2016/05/07 16:43:02 mlelstv Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
@ -1065,7 +1065,7 @@ extendfile(struct denode *dep, u_long count, struct mkfsbuf **bpp, u_long *ncp,
|
|||||||
clrbuf(bp);
|
clrbuf(bp);
|
||||||
if (bpp) {
|
if (bpp) {
|
||||||
*bpp = bp;
|
*bpp = bp;
|
||||||
bpp = NULL;
|
bpp = NULL;
|
||||||
} else {
|
} else {
|
||||||
bdwrite(bp);
|
bdwrite(bp);
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: print.c,v 1.14 2022/12/28 21:30:17 jmc Exp $ */
|
/* $OpenBSD: print.c,v 1.15 2024/04/23 13:34:51 jsg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1993-96 Mats O Jansson. All rights reserved.
|
* Copyright (c) 1993-96 Mats O Jansson. All rights reserved.
|
||||||
@ -135,7 +135,7 @@ mopPrintOneline(FILE *fd, u_char *pkt, int trans)
|
|||||||
mopPrintHWA(fd, src); fprintf(fd, " > ");
|
mopPrintHWA(fd, src); fprintf(fd, " > ");
|
||||||
mopPrintHWA(fd, dst);
|
mopPrintHWA(fd, dst);
|
||||||
if (len < 1600)
|
if (len < 1600)
|
||||||
fprintf(fd, " len %4d code %02x ", len, code);
|
fprintf(fd, " len %4d code %02x ", len, code);
|
||||||
else
|
else
|
||||||
fprintf(fd, " len %4d code %02x ",
|
fprintf(fd, " len %4d code %02x ",
|
||||||
(len % 256)*256 + (len /256), code);
|
(len % 256)*256 + (len /256), code);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* $NetBSD: compare.c,v 1.11 1996/09/05 09:56:48 mycroft Exp $ */
|
/* $NetBSD: compare.c,v 1.11 1996/09/05 09:56:48 mycroft Exp $ */
|
||||||
/* $OpenBSD: compare.c,v 1.30 2023/08/11 05:07:28 guenther Exp $ */
|
/* $OpenBSD: compare.c,v 1.31 2024/04/23 13:34:51 jsg Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1989, 1993
|
* Copyright (c) 1989, 1993
|
||||||
@ -328,7 +328,7 @@ typeerr: LABEL;
|
|||||||
"-" : db_flags,
|
"-" : db_flags,
|
||||||
(*cur_flags == '\0') ?
|
(*cur_flags == '\0') ?
|
||||||
"-" : cur_flags);
|
"-" : cur_flags);
|
||||||
tab = "\t";
|
tab = "\t";
|
||||||
if (uflag)
|
if (uflag)
|
||||||
if (chflags(p->fts_accpath, s->file_flags))
|
if (chflags(p->fts_accpath, s->file_flags))
|
||||||
(void)printf(", not modified: %s)\n",
|
(void)printf(", not modified: %s)\n",
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: control.c,v 1.20 2023/12/20 15:36:36 otto Exp $ */
|
/* $OpenBSD: control.c,v 1.21 2024/04/23 13:34:51 jsg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
|
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
|
||||||
@ -251,7 +251,7 @@ control_dispatch_msg(struct pollfd *pfd, u_int *ctl_cnt)
|
|||||||
build_show_sensor(&c_sensor, s);
|
build_show_sensor(&c_sensor, s);
|
||||||
imsg_compose(&c->ibuf, IMSG_CTL_SHOW_SENSORS,
|
imsg_compose(&c->ibuf, IMSG_CTL_SHOW_SENSORS,
|
||||||
0, 0, -1, &c_sensor, sizeof(c_sensor));
|
0, 0, -1, &c_sensor, sizeof(c_sensor));
|
||||||
cnt++;
|
cnt++;
|
||||||
}
|
}
|
||||||
imsg_compose(&c->ibuf, IMSG_CTL_SHOW_SENSORS_END,
|
imsg_compose(&c->ibuf, IMSG_CTL_SHOW_SENSORS_END,
|
||||||
0, 0, -1, &cnt, sizeof(cnt));
|
0, 0, -1, &cnt, sizeof(cnt));
|
||||||
@ -276,7 +276,7 @@ control_dispatch_msg(struct pollfd *pfd, u_int *ctl_cnt)
|
|||||||
build_show_sensor(&c_sensor, s);
|
build_show_sensor(&c_sensor, s);
|
||||||
imsg_compose(&c->ibuf, IMSG_CTL_SHOW_SENSORS,
|
imsg_compose(&c->ibuf, IMSG_CTL_SHOW_SENSORS,
|
||||||
0, 0, -1, &c_sensor, sizeof(c_sensor));
|
0, 0, -1, &c_sensor, sizeof(c_sensor));
|
||||||
cnt++;
|
cnt++;
|
||||||
}
|
}
|
||||||
imsg_compose(&c->ibuf, IMSG_CTL_SHOW_SENSORS_END,
|
imsg_compose(&c->ibuf, IMSG_CTL_SHOW_SENSORS_END,
|
||||||
0, 0, -1, &cnt, sizeof(cnt));
|
0, 0, -1, &cnt, sizeof(cnt));
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: pcidump.c,v 1.70 2024/02/01 18:26:45 kettenis Exp $ */
|
/* $OpenBSD: pcidump.c,v 1.71 2024/04/23 13:34:51 jsg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2006, 2007 David Gwynne <loki@animata.net>
|
* Copyright (c) 2006, 2007 David Gwynne <loki@animata.net>
|
||||||
@ -337,11 +337,11 @@ probe(int bus, int dev, int func)
|
|||||||
|
|
||||||
if (vendor != NULL) {
|
if (vendor != NULL) {
|
||||||
for (pkp = pci_known_products; pkp->productname != NULL; pkp++)
|
for (pkp = pci_known_products; pkp->productname != NULL; pkp++)
|
||||||
if (pkp->vendor == PCI_VENDOR(id_reg) &&
|
if (pkp->vendor == PCI_VENDOR(id_reg) &&
|
||||||
pkp->product == PCI_PRODUCT(id_reg)) {
|
pkp->product == PCI_PRODUCT(id_reg)) {
|
||||||
product = pkp->productname;
|
product = pkp->productname;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf(" %d:%d:%d: %s %s\n", bus, dev, func,
|
printf(" %d:%d:%d: %s %s\n", bus, dev, func,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: quot.c,v 1.32 2018/09/18 03:09:55 millert Exp $ */
|
/* $OpenBSD: quot.c,v 1.33 2024/04/23 13:34:51 jsg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 1991, 1994 Wolfgang Solfrank.
|
* Copyright (C) 1991, 1994 Wolfgang Solfrank.
|
||||||
@ -103,8 +103,9 @@ get_inode(int fd, struct fs *super, ino_t ino)
|
|||||||
if (pread(fd, cgp, super->fs_cgsize,
|
if (pread(fd, cgp, super->fs_cgsize,
|
||||||
(off_t)cgtod(super, cg) << super->fs_fshift)
|
(off_t)cgtod(super, cg) << super->fs_fshift)
|
||||||
!= super->fs_cgsize)
|
!= super->fs_cgsize)
|
||||||
if (read(fd, cgp, super->fs_cgsize) != super->fs_cgsize)
|
if (read(fd, cgp, super->fs_cgsize) !=
|
||||||
err(1, "read cg");
|
super->fs_cgsize)
|
||||||
|
err(1, "read cg");
|
||||||
if (!cg_chkmagic(cgp))
|
if (!cg_chkmagic(cgp))
|
||||||
errx(1, "cg has bad magic");
|
errx(1, "cg has bad magic");
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: frontend.c,v 1.44 2024/02/11 21:29:12 bluhm Exp $ */
|
/* $OpenBSD: frontend.c,v 1.45 2024/04/23 22:11:59 florian Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
|
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
|
||||||
@ -1157,6 +1157,14 @@ build_packet(struct ra_iface *ra_iface)
|
|||||||
else if (ra_options_conf->dfr) {
|
else if (ra_options_conf->dfr) {
|
||||||
ra->nd_ra_router_lifetime =
|
ra->nd_ra_router_lifetime =
|
||||||
htons(ra_options_conf->router_lifetime);
|
htons(ra_options_conf->router_lifetime);
|
||||||
|
/*
|
||||||
|
* RFC 4191
|
||||||
|
* If the Router Lifetime is zero, the preference value MUST be
|
||||||
|
* set to (00) by the sender and MUST be ignored by the
|
||||||
|
* receiver.
|
||||||
|
*/
|
||||||
|
if (ra_options_conf->router_lifetime > 0)
|
||||||
|
ra->nd_ra_flags_reserved |= ra_options_conf->rtpref;
|
||||||
}
|
}
|
||||||
ra->nd_ra_reachable = htonl(ra_options_conf->reachable_time);
|
ra->nd_ra_reachable = htonl(ra_options_conf->reachable_time);
|
||||||
ra->nd_ra_retransmit = htonl(ra_options_conf->retrans_timer);
|
ra->nd_ra_retransmit = htonl(ra_options_conf->retrans_timer);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: parse.y,v 1.21 2022/10/15 13:27:45 florian Exp $ */
|
/* $OpenBSD: parse.y,v 1.22 2024/04/23 22:11:59 florian Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
|
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
|
||||||
@ -29,6 +29,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
|
#include <netinet/icmp6.h>
|
||||||
#include <net/if.h>
|
#include <net/if.h>
|
||||||
|
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
@ -119,8 +120,8 @@ typedef struct {
|
|||||||
%token RA_IFACE YES NO INCLUDE ERROR
|
%token RA_IFACE YES NO INCLUDE ERROR
|
||||||
%token DEFAULT ROUTER HOP LIMIT MANAGED ADDRESS
|
%token DEFAULT ROUTER HOP LIMIT MANAGED ADDRESS
|
||||||
%token CONFIGURATION OTHER LIFETIME REACHABLE TIME RETRANS TIMER
|
%token CONFIGURATION OTHER LIFETIME REACHABLE TIME RETRANS TIMER
|
||||||
%token AUTO PREFIX VALID PREFERRED LIFETIME ONLINK AUTONOMOUS
|
%token AUTO PREFIX VALID PREFERENCE PREFERRED LIFETIME ONLINK AUTONOMOUS
|
||||||
%token ADDRESS_CONFIGURATION DNS NAMESERVER SEARCH MTU NAT64
|
%token ADDRESS_CONFIGURATION DNS NAMESERVER SEARCH MTU NAT64 HIGH MEDIUM LOW
|
||||||
|
|
||||||
%token <v.string> STRING
|
%token <v.string> STRING
|
||||||
%token <v.number> NUMBER
|
%token <v.number> NUMBER
|
||||||
@ -210,6 +211,15 @@ ra_opt_block : DEFAULT ROUTER yesno {
|
|||||||
| ROUTER LIFETIME NUMBER {
|
| ROUTER LIFETIME NUMBER {
|
||||||
ra_options->router_lifetime = $3;
|
ra_options->router_lifetime = $3;
|
||||||
}
|
}
|
||||||
|
| ROUTER PREFERENCE HIGH {
|
||||||
|
ra_options->rtpref = ND_RA_FLAG_RTPREF_HIGH;
|
||||||
|
}
|
||||||
|
| ROUTER PREFERENCE MEDIUM {
|
||||||
|
ra_options->rtpref = ND_RA_FLAG_RTPREF_MEDIUM;
|
||||||
|
}
|
||||||
|
| ROUTER PREFERENCE LOW {
|
||||||
|
ra_options->rtpref = ND_RA_FLAG_RTPREF_LOW;
|
||||||
|
}
|
||||||
| REACHABLE TIME NUMBER {
|
| REACHABLE TIME NUMBER {
|
||||||
ra_options->reachable_time = $3;
|
ra_options->reachable_time = $3;
|
||||||
}
|
}
|
||||||
@ -507,18 +517,22 @@ lookup(char *s)
|
|||||||
{"configuration", CONFIGURATION},
|
{"configuration", CONFIGURATION},
|
||||||
{"default", DEFAULT},
|
{"default", DEFAULT},
|
||||||
{"dns", DNS},
|
{"dns", DNS},
|
||||||
|
{"high", HIGH},
|
||||||
{"hop", HOP},
|
{"hop", HOP},
|
||||||
{"include", INCLUDE},
|
{"include", INCLUDE},
|
||||||
{"interface", RA_IFACE},
|
{"interface", RA_IFACE},
|
||||||
{"lifetime", LIFETIME},
|
{"lifetime", LIFETIME},
|
||||||
{"limit", LIMIT},
|
{"limit", LIMIT},
|
||||||
|
{"low", LOW},
|
||||||
{"managed", MANAGED},
|
{"managed", MANAGED},
|
||||||
|
{"medium", MEDIUM},
|
||||||
{"mtu", MTU},
|
{"mtu", MTU},
|
||||||
{"nameserver", NAMESERVER},
|
{"nameserver", NAMESERVER},
|
||||||
{"nat64", NAT64},
|
{"nat64", NAT64},
|
||||||
{"no", NO},
|
{"no", NO},
|
||||||
{"on-link", ONLINK},
|
{"on-link", ONLINK},
|
||||||
{"other", OTHER},
|
{"other", OTHER},
|
||||||
|
{"preference", PREFERENCE},
|
||||||
{"preferred", PREFERRED},
|
{"preferred", PREFERRED},
|
||||||
{"prefix", PREFIX},
|
{"prefix", PREFIX},
|
||||||
{"reachable", REACHABLE},
|
{"reachable", REACHABLE},
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: printconf.c,v 1.7 2022/10/15 13:26:15 florian Exp $ */
|
/* $OpenBSD: printconf.c,v 1.8 2024/04/23 22:11:59 florian Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
|
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
|
||||||
@ -23,6 +23,7 @@
|
|||||||
#include <sys/uio.h>
|
#include <sys/uio.h>
|
||||||
|
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
|
#include <netinet/icmp6.h>
|
||||||
#include <net/if.h>
|
#include <net/if.h>
|
||||||
|
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
@ -34,6 +35,7 @@
|
|||||||
#include "rad.h"
|
#include "rad.h"
|
||||||
|
|
||||||
const char* yesno(int);
|
const char* yesno(int);
|
||||||
|
const char* rtpref(int);
|
||||||
void print_ra_options(const char*, const struct ra_options_conf*);
|
void print_ra_options(const char*, const struct ra_options_conf*);
|
||||||
void print_prefix_options(const char*, const struct ra_prefix_conf*);
|
void print_prefix_options(const char*, const struct ra_prefix_conf*);
|
||||||
|
|
||||||
@ -43,6 +45,22 @@ yesno(int flag)
|
|||||||
return flag ? "yes" : "no";
|
return flag ? "yes" : "no";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char*
|
||||||
|
rtpref(int rtpref)
|
||||||
|
{
|
||||||
|
switch (rtpref & ND_RA_FLAG_RTPREF_MASK) {
|
||||||
|
case ND_RA_FLAG_RTPREF_HIGH:
|
||||||
|
return "high";
|
||||||
|
case ND_RA_FLAG_RTPREF_MEDIUM:
|
||||||
|
return "medium";
|
||||||
|
case ND_RA_FLAG_RTPREF_LOW:
|
||||||
|
return "low";
|
||||||
|
default:
|
||||||
|
return "invalid";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
print_ra_options(const char *indent, const struct ra_options_conf *ra_options)
|
print_ra_options(const char *indent, const struct ra_options_conf *ra_options)
|
||||||
{
|
{
|
||||||
@ -56,6 +74,7 @@ print_ra_options(const char *indent, const struct ra_options_conf *ra_options)
|
|||||||
printf("%smanaged address configuration %s\n", indent,
|
printf("%smanaged address configuration %s\n", indent,
|
||||||
yesno(ra_options->m_flag));
|
yesno(ra_options->m_flag));
|
||||||
printf("%sother configuration %s\n", indent, yesno(ra_options->o_flag));
|
printf("%sother configuration %s\n", indent, yesno(ra_options->o_flag));
|
||||||
|
printf("%srouter preference %s\n", indent, rtpref(ra_options->rtpref));
|
||||||
printf("%srouter lifetime %d\n", indent, ra_options->router_lifetime);
|
printf("%srouter lifetime %d\n", indent, ra_options->router_lifetime);
|
||||||
printf("%sreachable time %u\n", indent, ra_options->reachable_time);
|
printf("%sreachable time %u\n", indent, ra_options->reachable_time);
|
||||||
printf("%sretrans timer %u\n", indent, ra_options->retrans_timer);
|
printf("%sretrans timer %u\n", indent, ra_options->retrans_timer);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
.\" $OpenBSD: rad.conf.5,v 1.21 2023/04/27 16:56:52 phessler Exp $
|
.\" $OpenBSD: rad.conf.5,v 1.23 2024/04/23 22:17:49 florian Exp $
|
||||||
.\"
|
.\"
|
||||||
.\" Copyright (c) 2018 Florian Obser <florian@openbsd.org>
|
.\" Copyright (c) 2018 Florian Obser <florian@openbsd.org>
|
||||||
.\" Copyright (c) 2005 Esben Norby <norby@openbsd.org>
|
.\" Copyright (c) 2005 Esben Norby <norby@openbsd.org>
|
||||||
@ -18,7 +18,7 @@
|
|||||||
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||||
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
.\"
|
.\"
|
||||||
.Dd $Mdocdate: April 27 2023 $
|
.Dd $Mdocdate: April 23 2024 $
|
||||||
.Dt RAD.CONF 5
|
.Dt RAD.CONF 5
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -120,6 +120,9 @@ like NTP servers or DNS name servers.
|
|||||||
The number of seconds this router is a valid default router after receiving
|
The number of seconds this router is a valid default router after receiving
|
||||||
a router advertisement message.
|
a router advertisement message.
|
||||||
The default is 1800 seconds.
|
The default is 1800 seconds.
|
||||||
|
.It Ic router preference Pq Ic high Ns | Ns Ic medium Ns | Ns Ic low
|
||||||
|
Indicate whether to prefer this router over other default routers.
|
||||||
|
The default is medium.
|
||||||
.\" .It Ic reachable time Ar number
|
.\" .It Ic reachable time Ar number
|
||||||
.\" XXX
|
.\" XXX
|
||||||
.\" .It Ic retrans timer Ar number
|
.\" .It Ic retrans timer Ar number
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: rad.h,v 1.25 2023/04/27 16:56:52 phessler Exp $ */
|
/* $OpenBSD: rad.h,v 1.26 2024/04/23 22:11:59 florian Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
|
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
|
||||||
@ -93,6 +93,7 @@ struct ra_options_conf {
|
|||||||
int cur_hl; /* current hop limit */
|
int cur_hl; /* current hop limit */
|
||||||
int m_flag; /* managed address conf flag */
|
int m_flag; /* managed address conf flag */
|
||||||
int o_flag; /* other conf flag */
|
int o_flag; /* other conf flag */
|
||||||
|
int rtpref; /* router preference */
|
||||||
int router_lifetime; /* default router lifetime */
|
int router_lifetime; /* default router lifetime */
|
||||||
uint32_t reachable_time;
|
uint32_t reachable_time;
|
||||||
uint32_t retrans_timer;
|
uint32_t retrans_timer;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: radiusd_standard.c,v 1.4 2024/02/09 07:41:32 yasuoka Exp $ */
|
/* $OpenBSD: radiusd_standard.c,v 1.5 2024/04/23 13:34:51 jsg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2013, 2023 Internet Initiative Japan Inc.
|
* Copyright (c) 2013, 2023 Internet Initiative Japan Inc.
|
||||||
@ -272,7 +272,7 @@ module_standard_resdeco(void *ctx, u_int q_id, const u_char *req, size_t reqlen,
|
|||||||
TAILQ_FOREACH(attr, &module->remove_resattrs, next) {
|
TAILQ_FOREACH(attr, &module->remove_resattrs, next) {
|
||||||
if (radres == NULL &&
|
if (radres == NULL &&
|
||||||
(radres = radius_convert_packet(res, reslen)) == NULL) {
|
(radres = radius_convert_packet(res, reslen)) == NULL) {
|
||||||
syslog(LOG_ERR,
|
syslog(LOG_ERR,
|
||||||
"%s: radius_convert_packet() failed: %m", __func__);
|
"%s: radius_convert_packet() failed: %m", __func__);
|
||||||
module_stop(module->base);
|
module_stop(module->base);
|
||||||
return;
|
return;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: auth.c,v 1.13 2023/06/22 10:38:27 claudio Exp $ */
|
/* $OpenBSD: auth.c,v 1.14 2024/04/23 13:34:51 jsg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it>
|
* Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it>
|
||||||
@ -251,7 +251,7 @@ auth_add_trailer(struct ibuf *buf, struct iface *iface)
|
|||||||
iface->auth_keyid)) == NULL) {
|
iface->auth_keyid)) == NULL) {
|
||||||
log_debug("auth_add_trailer: keyid %d not configured, "
|
log_debug("auth_add_trailer: keyid %d not configured, "
|
||||||
"interface %s", iface->auth_keyid, iface->name);
|
"interface %s", iface->auth_keyid, iface->name);
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
memcpy(digest, md->key, MD5_DIGEST_LENGTH);
|
memcpy(digest, md->key, MD5_DIGEST_LENGTH);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: http.c,v 1.83 2024/04/17 14:01:17 claudio Exp $ */
|
/* $OpenBSD: http.c,v 1.85 2024/04/23 10:27:46 tb Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2020 Nils Fisher <nils_fisher@hotmail.com>
|
* Copyright (c) 2020 Nils Fisher <nils_fisher@hotmail.com>
|
||||||
* Copyright (c) 2020 Claudio Jeker <claudio@openbsd.org>
|
* Copyright (c) 2020 Claudio Jeker <claudio@openbsd.org>
|
||||||
@ -1162,7 +1162,8 @@ proxy_connect(struct http_connection *conn)
|
|||||||
conn->bufpos = 0;
|
conn->bufpos = 0;
|
||||||
/* XXX handle auth */
|
/* XXX handle auth */
|
||||||
if ((r = asprintf(&conn->buf, "CONNECT %s HTTP/1.1\r\n"
|
if ((r = asprintf(&conn->buf, "CONNECT %s HTTP/1.1\r\n"
|
||||||
"User-Agent: " HTTP_USER_AGENT "\r\n%s\r\n", host,
|
"Host: %s\r\n"
|
||||||
|
"User-Agent: " HTTP_USER_AGENT "\r\n%s\r\n", host, host,
|
||||||
proxy.proxyauth)) == -1)
|
proxy.proxyauth)) == -1)
|
||||||
err(1, NULL);
|
err(1, NULL);
|
||||||
conn->bufsz = r;
|
conn->bufsz = r;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: carp.c,v 1.18 2023/02/08 08:20:54 tb Exp $ */
|
/* $OpenBSD: carp.c,v 1.19 2024/04/23 13:34:51 jsg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2005 Håkan Olsson. All rights reserved.
|
* Copyright (c) 2005 Håkan Olsson. All rights reserved.
|
||||||
@ -127,7 +127,7 @@ carp_demote(int demote, int force)
|
|||||||
log_msg(1, "carp_demote: unable to get "
|
log_msg(1, "carp_demote: unable to get "
|
||||||
"the demote state of group '%s'",
|
"the demote state of group '%s'",
|
||||||
cfgstate.carp_ifgroup);
|
cfgstate.carp_ifgroup);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ifgr.ifgr_attrib.ifg_carp_demoted == 0)
|
if (ifgr.ifgr_attrib.ifg_carp_demoted == 0)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: lka_filter.c,v 1.74 2023/11/03 13:38:28 op Exp $ */
|
/* $OpenBSD: lka_filter.c,v 1.75 2024/04/23 13:34:51 jsg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2018 Gilles Chehade <gilles@poolp.org>
|
* Copyright (c) 2018 Gilles Chehade <gilles@poolp.org>
|
||||||
@ -729,7 +729,7 @@ filter_protocol_internal(struct filter_session *fs, uint64_t *token, uint64_t re
|
|||||||
filter->name,
|
filter->name,
|
||||||
param,
|
param,
|
||||||
filter->config->rewrite);
|
filter->config->rewrite);
|
||||||
filter_result_rewrite(reqid, filter->config->rewrite);
|
filter_result_rewrite(reqid, filter->config->rewrite);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (filter->config->disconnect) {
|
else if (filter->config->disconnect) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: mda_variables.c,v 1.9 2023/03/19 16:43:44 millert Exp $ */
|
/* $OpenBSD: mda_variables.c,v 1.10 2024/04/23 13:34:51 jsg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2011-2017 Gilles Chehade <gilles@poolp.org>
|
* Copyright (c) 2011-2017 Gilles Chehade <gilles@poolp.org>
|
||||||
@ -74,27 +74,27 @@ mda_expand_token(char *dest, size_t len, const char *token,
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
*lbracket = *rbracket = '\0';
|
*lbracket = *rbracket = '\0';
|
||||||
content = lbracket + 1;
|
content = lbracket + 1;
|
||||||
|
|
||||||
if ((sep = strchr(content, ':')) == NULL)
|
if ((sep = strchr(content, ':')) == NULL)
|
||||||
endoff = begoff = strtonum(content, -EXPAND_BUFFER,
|
endoff = begoff = strtonum(content, -EXPAND_BUFFER,
|
||||||
EXPAND_BUFFER, &errstr);
|
EXPAND_BUFFER, &errstr);
|
||||||
else {
|
else {
|
||||||
*sep = '\0';
|
*sep = '\0';
|
||||||
if (content != sep)
|
if (content != sep)
|
||||||
begoff = strtonum(content, -EXPAND_BUFFER,
|
begoff = strtonum(content, -EXPAND_BUFFER,
|
||||||
EXPAND_BUFFER, &errstr);
|
EXPAND_BUFFER, &errstr);
|
||||||
if (*(++sep)) {
|
if (*(++sep)) {
|
||||||
if (errstr == NULL)
|
if (errstr == NULL)
|
||||||
endoff = strtonum(sep, -EXPAND_BUFFER,
|
endoff = strtonum(sep, -EXPAND_BUFFER,
|
||||||
EXPAND_BUFFER, &errstr);
|
EXPAND_BUFFER, &errstr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (errstr)
|
if (errstr)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
/* token:mod_1,mod_2,mod_n -> extract modifiers */
|
/* token:mod_1,mod_2,mod_n -> extract modifiers */
|
||||||
mods = strchr(rbracket + 1, ':');
|
mods = strchr(rbracket + 1, ':');
|
||||||
} else {
|
} else {
|
||||||
if ((mods = strchr(rtoken, ':')) != NULL)
|
if ((mods = strchr(rtoken, ':')) != NULL)
|
||||||
*mods++ = '\0';
|
*mods++ = '\0';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: mta.c,v 1.247 2024/01/03 08:11:15 op Exp $ */
|
/* $OpenBSD: mta.c,v 1.248 2024/04/23 13:34:51 jsg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
|
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
|
||||||
@ -1364,7 +1364,7 @@ mta_connect(struct mta_connector *c)
|
|||||||
mta_session(c->relay, route, mx->mxname); /* this never fails synchronously */
|
mta_session(c->relay, route, mx->mxname); /* this never fails synchronously */
|
||||||
mta_relay_ref(c->relay);
|
mta_relay_ref(c->relay);
|
||||||
|
|
||||||
goto again;
|
goto again;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: print-ospf.c,v 1.22 2020/01/24 22:46:37 procter Exp $ */
|
/* $OpenBSD: print-ospf.c,v 1.23 2024/04/23 13:34:51 jsg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1992, 1993, 1994, 1995, 1996, 1997
|
* Copyright (c) 1992, 1993, 1994, 1995, 1996, 1997
|
||||||
@ -343,7 +343,7 @@ ospf_print_lsa(const struct lsa *lsap)
|
|||||||
(u_int32_t)ntohl(mcp->mcla_vtype));
|
(u_int32_t)ntohl(mcp->mcla_vtype));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
++mcp;
|
++mcp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: print-slow.c,v 1.4 2015/11/16 00:16:39 mmcc Exp $ */
|
/* $OpenBSD: print-slow.c,v 1.5 2024/04/23 13:34:51 jsg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1998-2005 The TCPDUMP project
|
* Copyright (c) 1998-2005 The TCPDUMP project
|
||||||
@ -261,7 +261,7 @@ slow_print(const u_char *pptr, u_int len)
|
|||||||
tlen -= tlv_len;
|
tlen -= tlv_len;
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
trunc:
|
trunc:
|
||||||
printf("\n\t[|slow]");
|
printf("\n\t[|slow]");
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: print-snmp.c,v 1.29 2024/02/03 00:20:21 jsg Exp $ */
|
/* $OpenBSD: print-snmp.c,v 1.30 2024/04/23 13:34:51 jsg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996, 1997
|
* Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996, 1997
|
||||||
@ -662,7 +662,7 @@ asn1_print(struct be *elem)
|
|||||||
case BE_NULL:
|
case BE_NULL:
|
||||||
break;
|
break;
|
||||||
case BE_OID: {
|
case BE_OID: {
|
||||||
int o = 0, first = -1, i = asnlen;
|
int o = 0, first = -1, i = asnlen;
|
||||||
|
|
||||||
if (!nflag && asnlen > 2) {
|
if (!nflag && asnlen > 2) {
|
||||||
struct obj_abrev *a = &obj_abrev_list[0];
|
struct obj_abrev *a = &obj_abrev_list[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user