Re: [bugfix] xterm(1) needs "cpath" pledge(2)

2018-07-29 Thread lists
Sun, 29 Jul 2018 15:46:20 +0300 (EEST) Leonid Bobrov > Lauri, Matthieu, thank you for saving me the trouble having to read and > understand the code of this big fat hippopotamus. > > So, that means somehow I actually accidentally pressed annoying touchpad > and was lucky enough to click "Print-Al

Re: [bugfix] xterm(1) needs "cpath" pledge(2)

2018-07-29 Thread Leonid Bobrov
Lauri, Matthieu, thank you for saving me the trouble having to read and understand the code of this big fat hippopotamus. So, that means somehow I actually accidentally pressed annoying touchpad and was lucky enough to click "Print-All Immediately" without noticing that... I regret that I've sent

Re: [bugfix] xterm(1) needs "cpath" pledge(2)

2018-07-29 Thread Theo de Raadt
Matthieu Herrb wrote: > > but to decide, we should know *what* triggered this behaviour. > > Hi, > > After digging a bit, there is at least the 'Print All Immediatly' > function from button 1 menu that will trigger the creation of a file > and violate the pledge. > > see xtermPrintImmediately

Re: [bugfix] xterm(1) needs "cpath" pledge(2)

2018-07-29 Thread Sebastien Marie
On Sun, Jul 29, 2018 at 08:43:22AM +0200, Matthieu Herrb wrote: > On Sun, Jul 29, 2018 at 07:28:19AM +0200, Sebastien Marie wrote: > > > > but to decide, we should know *what* triggered this behaviour. > > Hi, > > After digging a bit, there is at least the 'Print All Immediatly' > function from

Re: [bugfix] xterm(1) needs "cpath" pledge(2)

2018-07-28 Thread Matthieu Herrb
On Sun, Jul 29, 2018 at 07:28:19AM +0200, Sebastien Marie wrote: > Hi, > > First, thanks to (trying) to search for solve the problem you encountered. > > On Sat, Jul 28, 2018 at 10:08:04PM +0300, Leonid Bobrov wrote: > > Hi! > > > > Like I said yesterday, I don't know how to reproduce this bug,

Re: [bugfix] xterm(1) needs "cpath" pledge(2)

2018-07-28 Thread Lauri Tirkkonen
On Sun, Jul 29 2018 07:28:19 +0200, Sebastien Marie wrote: > personally, I like to know that xterm is unable to create a file. At least this feature will create files (accessible through the context menu through ctrl-left click): Print-All Immediately (resource print-immediate) Inv

Re: [bugfix] xterm(1) needs "cpath" pledge(2)

2018-07-28 Thread Sebastien Marie
Hi, First, thanks to (trying) to search for solve the problem you encountered. On Sat, Jul 28, 2018 at 10:08:04PM +0300, Leonid Bobrov wrote: > Hi! > > Like I said yesterday, I don't know how to reproduce this bug, it just > happened to me and I got this dmesg(1): > xterm[90461]: pledge "cpath",

Re: [bugfix] xterm(1) needs "cpath" pledge(2)

2018-07-28 Thread Theo de Raadt
I didn't realize you were using coloured cursors. You make me sad. You don't know what the bug is. You don't know how to reproduce it. You don't have a plausible call path. You grep, and yet don't dig deeper to see if that code you find is initialization phase or activated later during runtime

[bugfix] xterm(1) needs "cpath" pledge(2)

2018-07-28 Thread Leonid Bobrov
Hi! Like I said yesterday, I don't know how to reproduce this bug, it just happened to me and I got this dmesg(1): xterm[90461]: pledge "cpath", syscall 5 Right now I quickly grep(1)'ed xterm(1)'s source code: mazocomp$ egrep "mkdir\(|unlink\(|rmdir\(" -R . -n ./misc.c:760: && mkdir(fil