CVS: cvs.openbsd.org: src

2024-02-15 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2024/02/15 11:57:58

Modified files:
usr.bin/doas   : doas.c doas.h 

Log message:
change permit to be more bits away from deny, because rowhammer.
not really sure why this is our problem, but the diff is small.
ok deraadt millert miod



CVS: cvs.openbsd.org: src

2022-05-01 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/05/01 17:00:05

Modified files:
sys/kern   : init_sysent.c syscalls.c 
sys/sys: syscall.h syscallargs.h 

Log message:
regen



CVS: cvs.openbsd.org: src

2022-05-01 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/05/01 16:59:49

Modified files:
sys/kern   : makesyscalls.sh 

Log message:
no need to test for toupper function in awk
ok cheloha millert miod



CVS: cvs.openbsd.org: src

2022-04-29 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/04/29 19:29:05

Modified files:
usr.sbin/btrace: map.c 

Log message:
add support for printing some extra large numbers to histograms
ok mpi



CVS: cvs.openbsd.org: src

2022-02-28 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/02/28 18:22:11

Modified files:
share/man/man5 : login.conf.5 
lib/libc/gen   : login_cap.c 
include: login_cap.h 

Log message:
add rtable capability to login.conf.
from Matthew Martin



CVS: cvs.openbsd.org: src

2022-02-25 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/02/25 11:29:32

Modified files:
usr.bin/doas   : doas.c 

Log message:
use setall for setusercontext, to make it simpler to inherit new changes.
note that the addition of setenv doesn't do much, since doas will rewrite
the environment anyway (but added variables are accessible in keepenv,
should anybody be using that feature).



CVS: cvs.openbsd.org: src

2022-02-25 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/02/25 11:24:02

Modified files:
lib/libc/sys   : pledge.2 
sys/kern   : kern_pledge.c 

Log message:
add setrtable to pledge("id"). from Matthew Martin
ok deraadt



CVS: cvs.openbsd.org: src

2022-02-04 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/02/04 10:50:28

Modified files:
sys/kern   : kern_pledge.c 

Log message:
whitelist resolv.conf for stat. go dns library does this.
ok deraadt



CVS: cvs.openbsd.org: src

2020-07-16 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2020/07/16 11:47:41

Modified files:
usr.bin/ktrace : ktrace.1 ktrace.c 

Log message:
add -T option to make time related system calls more prominent.
ok deraadt



CVS: cvs.openbsd.org: src

2020-07-16 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2020/07/16 11:47:10

Modified files:
lib/libc/dlfcn : init.c 

Log message:
allow setenv LIBC_NOUSERTC to disable userland timekeeping, for ktrace.
ok deraadt pirofti



CVS: cvs.openbsd.org: src

2020-01-26 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2020/01/26 18:05:28

Modified files:
usr.bin/leave  : leave.c 

Log message:
in hhmm mode, check that len(time) is 4 to avoid confusion.
feedback cheloha deraadt



CVS: cvs.openbsd.org: src

2020-01-25 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2020/01/25 21:29:17

Modified files:
sys/kern   : init_sysent.c syscalls.c 
sys/sys: syscall.h syscallargs.h 

Log message:
regen



CVS: cvs.openbsd.org: src

2020-01-25 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2020/01/25 21:28:18

Modified files:
sys/kern   : syscalls.master vfs_syscalls.c 

Log message:
add a new __tmpfd system call that creates a new unnamed file in /tmp.
intended for shm/fd passing, but for programs that may otherwise like
filesystem access.
ok beck deraadt kettenis



CVS: cvs.openbsd.org: src

2020-01-25 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2020/01/25 21:26:46

Modified files:
etc/etc.macppc : Makefile.inc 
sys/arch/macppc/stand: Makefile 

Log message:
try disconnecting old world boot.mac bootloader for a bit



CVS: cvs.openbsd.org: src

2020-01-25 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2020/01/25 21:23:55

Modified files:
sys/arch/sparc64/dev: vdsk.c 

Log message:
vsdk -> vdsk in a panic message



CVS: cvs.openbsd.org: src

2020-01-25 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2020/01/25 21:22:37

Modified files:
sys/kern   : vfs_bio.c 

Log message:
invert some if logic to shortcircuit some loops and reduce nesting.
no function change.



CVS: cvs.openbsd.org: src

2020-01-24 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2020/01/25 00:09:14

Modified files:
usr.bin/ssh: ssh_config.5 sshd_config.5 

Log message:
group14-sha1 is no longer a default algorithm



Re: CVS: cvs.openbsd.org: src

2020-01-24 Thread Ted Unangst
Stuart Henderson wrote:
> On 2020/01/21 21:58, Ted Unangst wrote:
> > CVSROOT:/cvs
> > Module name:src
> > Changes by: t...@cvs.openbsd.org2020/01/21 21:58:23
> > 
> > Modified files:
> > usr.bin/ssh: myproposal.h 
> > 
> > Log message:
> > remove diffie-hellman-group14-sha1 from default kex to see what happens.
> > general mostly ok
> > 
> 
> Could do with a current.html for this ..
> 
>  .ssh/config Host blocks for a bunch of switches>

I will consult with the ssh council. I think some related changes are being
made as well.



CVS: cvs.openbsd.org: www

2020-01-23 Thread Ted Unangst
CVSROOT:/cvs
Module name:www
Changes by: t...@cvs.openbsd.org2020/01/23 23:27:10

Modified files:
faq: current.html 

Log message:
note the retirement of rebound



CVS: cvs.openbsd.org: src

2020-01-23 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2020/01/23 23:19:01

Removed files:
usr.sbin/rebound: Makefile https.c randomid.c rebound.8 
  rebound.c 

Log message:
progress on rebound has been stalled long enough it's time to fade away.



CVS: cvs.openbsd.org: src

2020-01-23 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2020/01/23 23:17:38

Modified files:
etc: Makefile group master.passwd rc rc.conf 
etc/mail   : aliases 
Removed files:
etc/rc.d   : rebound 

Log message:
retire rebound etc bits to the attic



CVS: cvs.openbsd.org: src

2020-01-23 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2020/01/23 23:16:48

Modified files:
share/man/man5 : resolv.conf.5 

Log message:
re{move,bound,ference}



CVS: cvs.openbsd.org: src

2020-01-23 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2020/01/23 23:15:36

Modified files:
regress/usr.sbin: Makefile 
Removed files:
regress/usr.sbin/rebound: Makefile cache.sh localhost.sh 
  rebound-ns.c record.sh reload.sh 
  run.sh 

Log message:
re{move,bound,gress}



CVS: cvs.openbsd.org: src

2020-01-23 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2020/01/23 22:11:34

Modified files:
usr.sbin   : Makefile 

Log message:
unlink rebound. its future is quite limited.



CVS: cvs.openbsd.org: www

2020-01-23 Thread Ted Unangst
CVSROOT:/cvs
Module name:www
Changes by: t...@cvs.openbsd.org2020/01/23 21:46:10

Modified files:
.  : macppc.html 

Log message:
we probably don't really support old world macs, remove mention. ok krw



CVS: cvs.openbsd.org: src

2020-01-23 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2020/01/23 20:49:34

Modified files:
sys/msdosfs: msdosfs_vfsops.c 

Log message:
remove a notyet that remains more not than yet after 25 years. ok krw



CVS: cvs.openbsd.org: src

2020-01-23 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2020/01/23 20:29:55

Modified files:
sys/dev/pci: auixp.c cs4280.c if_alcreg.h pciide.c 
 plx9060var.h 

Log message:
remove some ifdef notyet code that doesn't seem to be moving forward...
some ok ratchov



CVS: cvs.openbsd.org: src

2020-01-23 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2020/01/23 20:05:14

Modified files:
sys/conf   : files 
Removed files:
sys/dev/ic : ncr5380reg.h ncr5380sbc.c ncr5380var.h 

Log message:
remove unreferenced ncr5380 driver files
ok jsg



Re: CVS: cvs.openbsd.org: src

2020-01-22 Thread Ted Unangst
Ted Unangst wrote:
> CVSROOT:  /cvs
> Module name:  src
> Changes by:   t...@cvs.openbsd.org2020/01/22 22:46:44
> 
> Modified files:
>   sys/dev/ata: wd.c 
> 
> Log message:
> we've been using LBA48 for < 137GB drives for 17 years, so perhaps
> we can remove the XXX now.

btw, for the curious, we actually only use LBA48 when needed to do the i/o.



CVS: cvs.openbsd.org: src

2020-01-22 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2020/01/22 22:46:44

Modified files:
sys/dev/ata: wd.c 

Log message:
we've been using LBA48 for < 137GB drives for 17 years, so perhaps
we can remove the XXX now.



CVS: cvs.openbsd.org: src

2020-01-22 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2020/01/22 15:25:22

Modified files:
usr.sbin/acme-client: json.c 

Log message:
use the correct length to allocate the right amount, broken by previous.
noticed by Matthew Martin
ok deraadt



CVS: cvs.openbsd.org: src

2020-01-22 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2020/01/22 02:29:50

Modified files:
usr.sbin/bind/lib/isc/unix: app.c socket.c 

Log message:
eliminate many other possibilities in favor of just using select() here.
ok florian



CVS: cvs.openbsd.org: src

2020-01-22 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2020/01/22 01:17:01

Modified files:
usr.sbin/bind/lib/isc: safe.c 
usr.sbin/bind/lib/isc/unix: stdio.c file.c 

Log message:
unifdef a few features we have. ok florian



CVS: cvs.openbsd.org: src

2020-01-21 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2020/01/21 23:24:43

Modified files:
usr.sbin/acme-client: json.c 

Log message:
set array length after allocation succeeds so free path doesn't deref null.
ok deraadt



CVS: cvs.openbsd.org: src

2020-01-21 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2020/01/21 23:24:08

Modified files:
sbin/ifconfig  : brconfig.c 
sbin/kbd   : kbd_wscons.c 
sbin/mount_nfs : mount_nfs.c 
sbin/nfsd  : nfsd.c 

Log message:
remove semicolons not needed after } statements. ok deraadt



CVS: cvs.openbsd.org: src

2020-01-21 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2020/01/21 22:06:19

Modified files:
share/man/man4 : Makefile 
sys/dev/isa: files.isa 
sys/arch/i386/conf: GENERIC 
Removed files:
share/man/man4 : rtfps.4 
sys/dev/isa: rtfps.c 

Log message:
rm rtfps driver. disabled and man page doesn't inspire much confidence.
ok deraadt



CVS: cvs.openbsd.org: src

2020-01-21 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2020/01/21 21:58:23

Modified files:
usr.bin/ssh: myproposal.h 

Log message:
remove diffie-hellman-group14-sha1 from default kex to see what happens.
general mostly ok



CVS: cvs.openbsd.org: src

2020-01-21 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2020/01/21 21:35:21

Modified files:
usr.sbin/bind/lib/isc/include/isc: Makefile.in 
Removed files:
usr.sbin/bind/lib/isc/include/isc: queue.h 

Log message:
florian points out that queue.h is unused



CVS: cvs.openbsd.org: src

2020-01-21 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2020/01/21 21:04:39

Modified files:
usr.bin/leave  : leave.1 

Log message:
reword to avoid second person. ok cheloha deraadt



CVS: cvs.openbsd.org: src

2020-01-21 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2020/01/21 16:59:20

Modified files:
usr.sbin/bind/bin/dig: dighost.c 
usr.sbin/bind/lib/dns: lib.c master.c openssl_link.c 
usr.sbin/bind/lib/dns/rdata/in_1: wks_11.c 
usr.sbin/bind/lib/isc: Makefile.in app_api.c hash.c log.c 
   refcount.c result.c socket_api.c task.c 
   timer.c 
usr.sbin/bind/lib/isc/include/isc: Makefile.in queue.h 
   refcount.h util.h 
usr.sbin/bind/lib/isc/nothreads/include/isc: Makefile.in 
 condition.h 
usr.sbin/bind/lib/isc/unix: app.c socket.c strerror.c 
Removed files:
usr.sbin/bind/lib/isc: mutexblock.c 
usr.sbin/bind/lib/isc/include/isc: mutexblock.h 
usr.sbin/bind/lib/isc/nothreads: mutex.c 
usr.sbin/bind/lib/isc/nothreads/include/isc: mutex.h 

Log message:
remove mutex.h etc. since this code is now unthreaded.
ok florian



CVS: cvs.openbsd.org: src

2020-01-20 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2020/01/20 18:41:47

Modified files:
share/man/man4/man4.macppc: Makefile 
sys/arch/macppc/conf: GENERIC files.macppc 
Removed files:
share/man/man4/man4.macppc: esp.4 
sys/arch/macppc/dev: esp.c 

Log message:
remove unfinished macppc esp driver.
ok deraadt krw



CVS: cvs.openbsd.org: src

2020-01-20 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2020/01/20 18:40:46

Modified files:
sys/arch/amd64/conf: GENERIC 

Log message:
remove a few disabled drivers that don't compile and seem unlikely to
become interesting in the future.
ok deraadt krw



CVS: cvs.openbsd.org: src

2020-01-20 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2020/01/20 16:21:01

Modified files:
sys/arch/amd64/conf: GENERIC 
sys/arch/i386/conf: GENERIC 
sys/dev/pcmcia : files.pcmcia 
Removed files:
sys/dev/pcmcia : esp_pcmcia.c 

Log message:
remove esp at pcmcia attachment. it doesn't even compile.
ok deraadt krw



CVS: cvs.openbsd.org: src

2019-11-21 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/11/21 09:13:39

Modified files:
lib/libutil: bcrypt_pbkdf.c 

Log message:
zero tmpout too. reminded by related diff from tim



CVS: cvs.openbsd.org: src

2019-11-21 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/11/21 09:07:25

Modified files:
lib/libutil: bcrypt_pbkdf.c pkcs5_pbkdf2.c 

Log message:
overwrite the key in failure modes in case the caller doesn't check.
ok deraadt



CVS: cvs.openbsd.org: src

2019-10-20 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/10/20 21:14:54

Modified files:
distrib/special/doas: doas.c 

Log message:
keep in sync with regular doas. req by millert



CVS: cvs.openbsd.org: src

2019-10-18 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/10/18 11:15:45

Modified files:
usr.bin/doas   : doas.c 

Log message:
add some checks to avoid UID_MAX (-1) here. this is not problematic with
the current code, but it's probably safer this way.
ok deraadt



CVS: cvs.openbsd.org: src

2019-10-18 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/10/18 11:14:08

Modified files:
lib/libc/gen   : login_cap.c 

Log message:
setting uid to -1 won't work with setresuid, so detect that condition
and return an error instead. may prevent some unset/missing confusion.
ok deraadt millert



CVS: cvs.openbsd.org: src

2019-10-07 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/10/07 14:51:34

Modified files:
usr.bin/grep   : grep.1 

Log message:
jmc is a stickler for consistency.



CVS: cvs.openbsd.org: src

2019-10-07 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/10/07 14:04:00

Modified files:
usr.bin/grep   : grep.c 

Log message:
add --label to usage. thx jmc



CVS: cvs.openbsd.org: src

2019-10-07 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/10/07 11:47:32

Modified files:
usr.bin/grep   : grep.1 grep.c grep.h util.c 

Log message:
two compat features to allow the zstdgrep script to work.
add --label option to prefix the output instead of filename.
allow using - to mean stdin.
ok deraadt



CVS: cvs.openbsd.org: src

2019-10-07 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/10/07 11:44:45

Modified files:
usr.sbin/rebound: rebound.c 

Log message:
worker should always get a conffd, and if we don't, it's an error.
fixes compiler warning via deraadt



Re: CVS: cvs.openbsd.org: src

2019-09-02 Thread Ted Unangst
Patrick Wildt wrote:
> On Mon, Sep 02, 2019 at 06:46:09PM +0100, Stuart Henderson wrote:
> > On 2019/09/02 18:45, Stuart Henderson wrote:
> > > On 2019/09/01 10:28, Patrick Wildt wrote:
> > > > CVSROOT:/cvs
> > > > Module name:src
> > > > Changes by: patr...@cvs.openbsd.org 2019/09/01 10:28:50
> > > > 
> > > > Log message:
> > > > Import LLVM 8.0.1 release including clang, lld and lldb.
> > > 
> > > Some files were ignored by cvs import due to their file extensions. IIRC
> > > "cvs add" will work to add them. (you can tell "cvs import" to add them
> > > anyway with -I '!' but then need to be very careful not to introduce
> > > unwanted files to the repo).
> > 
> > PS judging by the filenames, they probably want to be set as binary.
> 
> I am aware.  Considering they are binaries that we'll probably never
> use anyway I thought that CVS ignoring them is actually pretty fine.

You aren't planning on making openbsd into the premier s390 debugging
platform???

> > > > I 
> > > > src/gnu/llvm/tools/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/linux-s390x.core



CVS: cvs.openbsd.org: src

2019-08-12 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/08/12 13:49:14

Modified files:
share/man/man8 : starttls.8 

Log message:
instructions for replacing cert.pem are probably more harmful than helpful.
noticed by freda_bundchen. ok gilles millert



Re: CVS: cvs.openbsd.org: src

2019-08-05 Thread Ted Unangst
Theo de Raadt wrote:
> CVSROOT:  /cvs
> Module name:  src
> Changes by:   dera...@cvs.openbsd.org 2019/08/03 17:16:08
> 
> Added files:
>   etc/signify: openbsd-67-base.pub 
> 
> Log message:
> good idea to make next-generation keys available well before heading into 
> release.

maybe too soon? :)

untrusted comment: openbsd 6.6 base public key
RWRmkIA877Io3oCILSZoJGhAswifJbFK4r18ICoia+3c0PfwANueolNj

can it say 6.7 please?



CVS: cvs.openbsd.org: src

2019-07-16 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/07/16 22:24:20

Modified files:
usr.bin/grep   : grep.1 util.c 

Log message:
when combining -o and -b, print the byte offset of the pattern, not line.
originally from chrisz



CVS: cvs.openbsd.org: src

2019-07-10 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/07/10 21:54:17

Modified files:
include: paths.h 

Log message:
add /usr/local/sbin. ok deraadt millert



CVS: cvs.openbsd.org: src

2019-07-07 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/07/07 13:21:28

Modified files:
usr.bin/doas   : doas.conf.5 env.c 

Log message:
fix one last edge case regarding PATH, allows simpler config.



CVS: cvs.openbsd.org: src

2019-07-04 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/07/04 13:04:17

Modified files:
usr.bin/doas   : doas.1 

Log message:
note that authentication is required, unless otherwise configured.
ok sthen



CVS: cvs.openbsd.org: src

2019-06-29 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/06/29 16:35:37

Modified files:
usr.bin/doas   : doas.c 

Log message:
fix some more fallout from setting path in setusercontext.  restore
previous behavior of using user PATH if no cmd restriction in the rule.
run into by espie



CVS: cvs.openbsd.org: src

2019-06-24 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/06/24 08:45:52

Modified files:
usr.bin/doas   : doas.conf.5 

Log message:
add an example hint that shows how original path can be retained



CVS: cvs.openbsd.org: src

2019-06-21 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/06/21 11:02:27

Modified files:
usr.bin/doas   : doas.1 doas.conf.5 

Log message:
tweak wording a bit. always talk about creating a new environment.
also document DOAS_USER.
ok deraadt jmc



CVS: cvs.openbsd.org: www

2019-06-17 Thread Ted Unangst
CVSROOT:/cvs
Module name:www
Changes by: t...@cvs.openbsd.org2019/06/17 23:47:48

Modified files:
faq: current.html 

Log message:
add a minimal hint that doas environment handling has changed.
perhaps to be expanded.



CVS: cvs.openbsd.org: src

2019-06-17 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/06/17 13:51:23

Modified files:
usr.bin/doas   : doas.c doas.h env.c 

Log message:
setusercontext resets PATH (which we want). but then it becomes
impossible to access the old PATH. save a copy in case we need it later.
bug report from espie.



CVS: cvs.openbsd.org: src

2019-06-17 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/06/17 12:44:44

Modified files:
usr.bin/doas   : doas.1 

Log message:
mention environment resetting here as well. ok millert



CVS: cvs.openbsd.org: src

2019-06-17 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/06/17 10:01:27

Modified files:
usr.bin/doas   : doas.conf.5 env.c 

Log message:
always reset the "su" variables, which is more consistent and predictable.
ok martijn millert



CVS: cvs.openbsd.org: src

2019-06-16 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/06/16 12:16:34

Modified files:
usr.bin/doas   : doas.c doas.conf.5 doas.h env.c 

Log message:
redo the environment inheritance to not inherit. it was intended to make
life easier, but it can be surprising or even unsafe. instead, reset just
about everything to the target user's values.
ok deraadt martijn
Thanks to Sander Bos in particular for pointing out some nasty edge cases.



CVS: cvs.openbsd.org: src

2019-06-11 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/06/11 20:50:29

Modified files:
usr.bin/doas   : doas.c 

Log message:
a few cleanups and simplifications possible now that static pw is gone.
noted by martijn. ok martijn.



CVS: cvs.openbsd.org: src

2019-06-10 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/06/10 12:11:27

Modified files:
usr.bin/doas   : doas.c 

Log message:
use getpwuid_r to avoid problems with hidden static storage.
ok deraadt lteo martijn



CVS: cvs.openbsd.org: src

2019-05-15 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/05/15 15:28:21

Modified files:
sys/dev/acpi   : tpm.c 

Log message:
unrevert, i missed deraadt's commit with the proper fix
noticed by deraadt



CVS: cvs.openbsd.org: src

2019-05-15 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/05/15 15:25:50

Modified files:
sys/kern   : kern_malloc.c 

Log message:
rework the zero warning slightly, and more completely disable until we're
more ready to deal with the noise.



CVS: cvs.openbsd.org: src

2019-05-15 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/05/15 15:18:40

Modified files:
sys/dev/acpi   : tpm.c 

Log message:
revert previous, since it makes jmc's machine print an extra newline.
several printfs here seem to have mismatched newlines?



CVS: cvs.openbsd.org: src

2019-05-14 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/05/14 07:44:25

Modified files:
usr.sbin/config: config.8 main.c misc.c misc.h ukcutil.c 

Log message:
allow specifying a cmdfile instead of trying to pipe in commands for -ef.
ok deraadt



CVS: cvs.openbsd.org: src

2019-05-13 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/05/13 16:58:52

Modified files:
sys/dev/acpi   : tpm.c 

Log message:
print a newline for attach. from f holop



CVS: cvs.openbsd.org: src

2019-05-12 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/05/12 15:01:46

Modified files:
usr.sbin/pppd  : Makefile 

Log message:
remove .PATH. this was used in previous eras to build bpf compiler stuff,
that's all used via libpcap now.
found by deraadt ok tb



CVS: cvs.openbsd.org: src

2019-05-11 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/05/11 17:52:17

Modified files:
games/pig  : pig.6 

Log message:
add an example to the man page. discovered by mlarkin



CVS: cvs.openbsd.org: src

2019-05-09 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/05/09 14:19:23

Modified files:
games/battlestar: com1.c com4.c com6.c cypher.c extern.h 
  globals.c init.c 

Log message:
rm lists of hereditary wizards and bad users to ensure level playing field
ok benno mlarkin tb



CVS: cvs.openbsd.org: src

2019-05-09 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/05/09 08:09:01

Modified files:
sys/kern   : kern_malloc.c 

Log message:
disable stack printing for now since at least arm64 can't print them
reported by kettenis



CVS: cvs.openbsd.org: src

2019-05-08 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/05/08 17:59:19

Modified files:
usr.sbin/ikectl: ikeca.c 

Log message:
convert system() calls to an execv() like interface.
avoids sh difficulties, etc.
from Matthew Martin.
ok deraadt reyk



CVS: cvs.openbsd.org: src

2019-05-08 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/05/08 17:56:48

Modified files:
libexec/ftpd   : extern.h ftpcmd.y ftpd.8 ftpd.c popen.c 

Log message:
rm dead code and simplify ftpd_popen. this code has only called
its statically linked ls_main for some time now.
from Jan Klemkow
ok deraadt



CVS: cvs.openbsd.org: src

2019-05-08 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/05/08 17:54:13

Modified files:
usr.bin/systat : iostat.c systat.1 

Log message:
allow switching to print stats since boot via 'b'.
ok beck deraadt



CVS: cvs.openbsd.org: src

2019-05-08 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/05/08 17:53:26

Modified files:
sys/kern   : kern_malloc.c 

Log message:
print a few warnings when calling free with a zero size.
let's see what falls out.
ok beck deraadt kettenis mpi



CVS: cvs.openbsd.org: src

2019-05-08 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/05/08 11:55:41

Modified files:
usr.bin/signify: signify.1 

Log message:
xr to sysupgrade



CVS: cvs.openbsd.org: src

2019-05-08 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/05/08 09:33:42

Modified files:
sys/dev/pci: azalia_codec.c 

Log message:
add free size, the old number of mixers, when reallocating.
ok deraadt mpi



CVS: cvs.openbsd.org: src

2019-05-08 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/05/08 09:32:53

Modified files:
sys/dev/ic : nvme.c 

Log message:
when freeing ccbs, pass the number so we can free with the size.
ok deraadt mpi



CVS: cvs.openbsd.org: src

2019-05-08 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/05/08 09:32:02

Modified files:
sys/dev/acpi   : acpi.c 

Log message:
free size. the allocation is the header plus the length.



CVS: cvs.openbsd.org: src

2019-05-07 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/05/07 12:53:35

Modified files:
lib/libc/sys   : sysctl.2 

Log message:
add an extra m where needed. spotted by Kent Watsen



CVS: cvs.openbsd.org: src

2019-04-20 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/04/20 17:22:28

Modified files:
lib/libevent   : min_heap.h 

Log message:
knf, ok bluhm



CVS: cvs.openbsd.org: src

2019-04-18 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/04/18 17:51:13

Modified files:
lib/libc/sys   : fsync.2 

Log message:
describe EIO failure state. noted by Maximilian Lorlacks



CVS: cvs.openbsd.org: src

2019-04-18 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/04/18 17:44:21

Modified files:
lib/libevent   : min_heap.h 

Log message:
unfold some compound operations to make this easier to follow



Re: CVS: cvs.openbsd.org: src

2019-04-03 Thread Ted Unangst
Ted Unangst wrote:
> Ted Unangst wrote:
> > CVSROOT:/cvs
> > Module name:src
> > Changes by: t...@cvs.openbsd.org2019/04/02 22:52:27
> > 
> > Removed files:
> > gnu/gcc/libobjc: ChangeLog Makefile.in NXConstStr.m Object.m 
> 
> Make sure to use cvs up -P to remove empty directories.

And then make sure the directory is actually deleted if you have a stale obj
directory inside it.



Re: CVS: cvs.openbsd.org: src

2019-04-02 Thread Ted Unangst
Ted Unangst wrote:
> CVSROOT:  /cvs
> Module name:  src
> Changes by:   t...@cvs.openbsd.org2019/04/02 22:52:27
> 
> Removed files:
>   gnu/gcc/libobjc: ChangeLog Makefile.in NXConstStr.m Object.m 

Make sure to use cvs up -P to remove empty directories.



CVS: cvs.openbsd.org: src

2019-04-02 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/04/02 22:52:27

Removed files:
gnu/gcc/libobjc: ChangeLog Makefile.in NXConstStr.m Object.m 
 Protocol.m README README.threads THREADS 
 THREADS.MACH acinclude.m4 aclocal.m4 archive.c 
 class.c config.h.in configure configure.ac 
 encoding.c exception.c gc.c hash.c init.c 
 libobjc.def libobjc_entry.c linking.m 
 makefile.dos misc.c nil_method.c objects.c 
 sarray.c selector.c sendmsg.c thr-dce.c 
 thr-decosf1.c thr-irix.c thr-mach.c thr-objc.c 
 thr-os2.c thr-posix.c thr-pthreads.c 
 thr-rtems.c thr-single.c thr-solaris.c 
 thr-vxworks.c thr-win32.c thr.c 
gnu/gcc/libobjc/objc: NXConstStr.h Object.h Protocol.h 
  encoding.h hash.h objc-api.h objc-decls.h 
  objc-list.h objc.h runtime.h sarray.h 
  thr.h typedstream.h 
gnu/lib/libobjc: .cvsignore Makefile.bsd-wrapper config.guess 
 config.sub install-sh libtool.m4 ltcf-c.sh 
 ltcf-cxx.sh ltcf-gcj.sh ltconfig ltmain.sh 
 shlib_version 
gnu/lib/libobjc/libobjc: ChangeLog Makefile.in NXConstStr.m 
 Object.m Protocol.m README 
 README.threads THREADS THREADS.MACH 
 aclocal.m4 archive.c class.c 
 config.h.in configure configure.in 
 encoding.c gc.c hash.c init.c 
 libobjc.def libobjc_entry.c linking.m 
 makefile.dos misc.c nil_method.c 
 objects.c sarray.c selector.c sendmsg.c 
 thr-dce.c thr-decosf1.c thr-irix.c 
 thr-mach.c thr-objc.c thr-os2.c 
 thr-posix.c thr-pthreads.c thr-rtems.c 
 thr-single.c thr-solaris.c 
 thr-vxworks.c thr-win32.c thr.c 
gnu/lib/libobjc/libobjc/objc: NXConstStr.h Object.h Protocol.h 
  encoding.h hash.h objc-api.h 
  objc-list.h objc.h runtime.h 
  sarray.h thr.h typedstream.h 
gnu/usr.bin/cc/libobjc: Makefile shlib_version 

Log message:
mortimer unlinked libobjc from the build, but didn't know how to cvs rm.
I don't know much about compilers, but what I do have are a very particular
set of skills. Skills I have acquired over a very long career.



CVS: cvs.openbsd.org: www

2019-04-02 Thread Ted Unangst
CVSROOT:/cvs
Module name:www
Changes by: t...@cvs.openbsd.org2019/04/02 03:17:20

Modified files:
.  : 65.html 

Log message:
signify -n and removal of oxtabs



CVS: cvs.openbsd.org: src

2019-04-01 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/04/01 05:39:46

Modified files:
etc: rc 

Log message:
revert previous. ifconfig errors may be interesting... to be revisited.



CVS: cvs.openbsd.org: src

2019-04-01 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/04/01 03:28:24

Modified files:
sys/ddb: db_command.c 

Log message:
remove prototype from earlier version of reboot code. spotted by anton



CVS: cvs.openbsd.org: src

2019-04-01 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/04/01 01:02:04

Modified files:
sys/arch/loongson/loongson: machdep.c 

Log message:
compile fix from visa



CVS: cvs.openbsd.org: src

2019-04-01 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/04/01 01:00:52

Modified files:
sys/arch/alpha/alpha: machdep.c 
sys/arch/amd64/amd64: machdep.c 
sys/arch/arm64/arm64: machdep.c 
sys/arch/armv7/armv7: armv7_machdep.c 
sys/arch/hppa/hppa: machdep.c 
sys/arch/i386/i386: machdep.c 
sys/arch/landisk/landisk: machdep.c 
sys/arch/loongson/loongson: machdep.c 
sys/arch/luna88k/luna88k: machdep.c 
sys/arch/macppc/macppc: machdep.c 
sys/arch/octeon/octeon: machdep.c 
sys/arch/sgi/sgi: machdep.c 
sys/arch/socppc/socppc: machdep.c 
sys/arch/sparc64/sparc64: machdep.c 
sys/ddb: db_command.c 
sys/sys: reboot.h 

Log message:
fast track ddb> reboot command to skip anything which might panic again.
ok deraadt



CVS: cvs.openbsd.org: src

2019-04-01 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/04/01 00:59:36

Modified files:
etc: rc 

Log message:
catch/hide errors from ifconfig carp in case there is no carp.
ok deraadt



CVS: cvs.openbsd.org: src

2019-04-01 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/04/01 00:40:05

Modified files:
usr.sbin/rebound: rebound.c 

Log message:
if inet6 is not available, warn, but carry on



  1   2   3   4   5   6   7   8   9   10   >