Re: [patch] httpd static gzip compression

2022-02-26 Thread Tracey Emery
at(gzpath, ) == 0)) { > path = gzpath; > st = > kv_add(>http_headers, > "Content-Encoding", "gzip"); > } > ``` > -- Tracey Emery

Re: [patch] httpd static gzip compression

2022-02-26 Thread Tracey Emery
; + > + if ((access(gzpath, R_OK) == 0) && > + (stat(gzpath, ) == 0)) { > + path = gzpath; > + st = > + kv_add(>http_headers, > + "Content-Encoding", "gzip"); > + } > + } > + } > + > /* Now open the file, should be readable or we have another problem */ > if ((fd = open(path, O_RDONLY)) == -1) > goto abort; > > - media = media_find_config(env, srv_conf, path); > ret = server_response_http(clt, 200, media, st->st_size, > MINIMUM(time(NULL), st->st_mtim.tv_sec)); > switch (ret) { > -- Tracey Emery

Re: [patch] httpd static gzip compression

2022-02-25 Thread Tracey Emery
+ r = kv_find(>http_headers, ); > + > + if (r != NULL && strstr(r->kv_value, "gzip") != NULL) { > + /* append ".gz" to path and check existence */ > + strlcpy(gzpath, path, sizeof(gzpath)); > + strlcat(gzpath, ".gz", sizeof(gzpath)); > + Shouldn't we check for truncation on strlcpy and strlcat and goto fail in that event? Other than that it looks ok to me. > + if ((access(gzpath, R_OK) == 0) && > + (stat(gzpath, ) == 0)) { > + path = gzpath; > + st = > + kv_add(>http_headers, > + "Content-Encoding", "gzip"); > + } > + } > + } > + > /* Now open the file, should be readable or we have another problem */ > if ((fd = open(path, O_RDONLY)) == -1) > goto abort; > > - media = media_find_config(env, srv_conf, path); > ret = server_response_http(clt, 200, media, st->st_size, > MINIMUM(time(NULL), st->st_mtim.tv_sec)); > switch (ret) { > -- Tracey Emery

Re: Fix headphone jack on Cirrus 4206

2021-09-11 Thread Tracey Emery
On Sat, Sep 11, 2021 at 06:07:10PM +0200, Mark Kettenis wrote: > > Date: Sat, 11 Sep 2021 08:53:00 -0600 > > From: Tracey Emery > > > > On Sat, Sep 11, 2021 at 02:14:56PM +0200, Mark Kettenis wrote: > > > > Date: Fri, 10 Sep 2021 18:27:07 -0600 > > >

Fix headphone jack on Cirrus 4206

2021-09-10 Thread Tracey Emery
Hello, After reading some Linux commits, it shows the GPIO2 on the CS4206 chips needs to be unmuted to make the headphone jack work. The following diff fixed the headphone jack problem on my iMac12,2, amd64. ok? -- Tracey Emery diff 51d7e35078715d4d1d1e1bf2fb89362bad8797d8 /usr/src blob

Re: httpd(8): fastcgi & Content-Length: 0

2021-05-19 Thread Tracey Emery
"Content-Length", "0") == NULL) > | + return (-1); > | + } > | } > | > | /* Is it a persistent connection? */ > | > | -- > | I'm not entirely sure you are real. > | > > -- > >[<++>-]<+++.>+++[<-->-]<.>+++[<+ > +++>-]<.>++[<>-]<+.--.[-] > http://www.weirdnet.nl/ -- Tracey Emery

Re: iwm(4) A-MSDU support

2021-03-29 Thread Tracey Emery
ac:fd:ce:09:87:97 > > Thanks! > > ~Brian Running all day without issue. iwm0 at pci2 dev 0 function 0 "Intel Dual Band Wireless-AC 8265" rev 0x78, msi iwm0: hw rev 0x230, fw ver 34.0.1, address cc:2f:71:9f:86:7a -- Tracey Emery

Increase timeout length for VMs trying to fully shutdown

2021-01-05 Thread Tracey Emery
with this number? Should it be another minute or two? Thoughts? Ok? -- Tracey Emery diff 7a6bb14936050379800deb10d4a137c4d2d4a3c4 /usr/src blob - 9a64973ab998accb810d56c386c1bb92c204ab20 file + usr.sbin/vmd/virtio.h --- usr.sbin/vmd/virtio.h +++ usr.sbin/vmd/virtio.h @@ -38,7 +38,7

Re: fix check of return value

2020-09-03 Thread Tracey Emery
On Thu, Sep 03, 2020 at 08:09:08AM -0600, Tracey Emery wrote: > On Thu, Sep 03, 2020 at 02:52:49PM +0200, Robert Klein wrote: > > Hi, > > > > on lib/libc/uuid/uuid_to_string.c the return value for asprintf is > > checked for -1 while the manpage only says "For all

Re: fix check of return value

2020-09-03 Thread Tracey Emery
u, char **s > u->clock_seq_hi_and_reserved, u->clock_seq_low, u->node[0], > u->node[1], u->node[2], u->node[3], u->node[4], u->node[5]); > > - if (c == -1 && status != NULL) > + if (c < 0 && status != NULL) > *status = uuid_s_no_memory; > } -- Tracey Emery

Re: additions to unit(1)

2020-08-04 Thread Tracey Emery
On August 4, 2020 1:38:43 PM MDT, Tracey Emery wrote: >On August 4, 2020 1:24:18 PM MDT, Florian Obser >wrote: >>Because of reasons I recently had to carry a lot of garbage around for >>the municipality to pick up. They would only pickup 2 cubic meters in >>one sitting so

Re: additions to unit(1)

2020-08-04 Thread Tracey Emery
and arrived at >https://en.wiktionary.org/wiki/buttload >as well as >https://www.ed.ac.uk/files/imports/fileManager/donkey%20fact%20sheet.pdf > >-- >I'm not entirely sure you are real. BaaaĆ hahahahahahaha! -- Tracey Emery

Re: 11n Tx aggregation for iwm(4)

2020-06-27 Thread Tracey Emery
Ps I have tested against are athn(4) in 11a mode and in 11n > mode with the 'nomimo' nwflag, and a Sagemcom 11ac AP. All on 5Ghz channels. > Sure you've got plenty of 8265 tests, but the diff tripled my speed against my apple airport extreme. iwm0 at pci2 dev 0 function 0 "Intel Dual Band Wireless-AC 8265" rev 0x78, msi -- Tracey Emery

Re: Include /var/www/tmp into base install

2020-04-07 Thread Tracey Emery
file: /cvs/src/etc/mtree/4.4BSD.dist,v > > retrieving revision 1.314 > > diff -u -p -r1.314 4.4BSD.dist > > --- etc//mtree/4.4BSD.dist 29 Nov 2019 03:28:20 - 1.314 > > +++ etc//mtree/4.4BSD.dist 7 Apr 2020 14:37:15 - > > @@ -749,6 +749,7 @@ var > > .. > > runtype=dir uname=root gname=daemon > > mode=755 > > .. > > +tmptype=dir uname=root gname=wheel > > mode=01777 > > .. > > > > # ./var/audit > > > > -- Tracey Emery

in httpd, use the correct configured server config

2020-01-14 Thread Tracey Emery
onf->maxrequests usage in server_response to where we finally know which configured server config to actually use. This ensures we are not using the first configured server config in the queue. Thanks, Tracey -- Tracey Emery diff e80014c68b2561493718bbcef6e7fcb172d7f885 /usr/sr

Re: iwm: support new umac scan API

2019-11-05 Thread Tracey Emery
On Mon, Nov 04, 2019 at 05:11:07PM +0100, Stefan Sperling wrote: > Great, thank you! Please keep running it and let me know if you come > across anything wonky :-) Everything has been stable since yesterday. No wonkiness observed! :D -- Tracey Emery

Re: iwm: support new umac scan API

2019-11-04 Thread Tracey Emery
hich would need to be changed contain the > expected firmware file name, for instance: > > sc->sc_fwname = "iwm-8265-22"; > > So just replace -22 with -34 and rebuild the kernel. Yup, definitely missed something obvious. Running stable on -34 as well. -- Tracey Emery

Re: iwm: support new umac scan API

2019-11-04 Thread Tracey Emery
+ uint16_t adwell_max_budget; > + uint32_t max_out_time[2]; > + uint32_t suspend_time[2]; > + uint32_t scan_priority; > + struct iwm_scan_umac_chan_param channel; > + uint8_t data[]; > + } v7; /* SCAN_REQUEST_CMD_UMAC_API_S_VER_7 */ > + struct { > + uint8_t active_dwell[2]; > + uint8_t reserved2; > + uint8_t adwell_default_n_aps; > + uint8_t adwell_default_n_aps_social; > + uint8_t general_flags2; > + uint16_t adwell_max_budget; > + uint32_t max_out_time[2]; > + uint32_t suspend_time[2]; > + uint32_t scan_priority; > + uint8_t passive_dwell[2]; > + uint8_t num_of_fragments[2]; > + struct iwm_scan_umac_chan_param channel; > + uint8_t data[]; > + } v8; /* SCAN_REQUEST_CMD_UMAC_API_S_VER_8 */ > + struct { > + uint8_t active_dwell[2]; > + uint8_t adwell_default_hb_n_aps; > + uint8_t adwell_default_lb_n_aps; > + uint8_t adwell_default_n_aps_social; > + uint8_t general_flags2; > + uint16_t adwell_max_budget; > + uint32_t max_out_time[2]; > + uint32_t suspend_time[2]; > + uint32_t scan_priority; > + uint8_t passive_dwell[2]; > + uint8_t num_of_fragments[2]; > + struct iwm_scan_umac_chan_param channel; > + uint8_t data[]; > + } v9; /* SCAN_REQUEST_CMD_UMAC_API_S_VER_9 */ > + }; > +} __packed; > + > +#define IWM_SCAN_REQ_UMAC_SIZE_V8 sizeof(struct iwm_scan_req_umac) > +#define IWM_SCAN_REQ_UMAC_SIZE_V7 48 > +#define IWM_SCAN_REQ_UMAC_SIZE_V6 44 > +#define IWM_SCAN_REQ_UMAC_SIZE_V1 36 > > /** > * struct iwm_umac_scan_abort -- Tracey Emery

Re: acpivout: try to consistently adjust brightness by 5%

2019-10-14 Thread Tracey Emery
_bcl_len)) > + nlevel++; > + else if (dir == -1 && (nlevel - 1 >= 0)) > + nlevel--; > + } > + if (nlevel == level) > return; > > - for (i = 0; i < sc->sc_bcl_len && cur_level != sc->sc_bcl[i]; i++); > - acpivout_set_brightness(sc, sc->sc_bcl[i - 1]); > + acpivout_set_brightness(sc, nlevel); > } > > void -- Tracey Emery

Re: acpithinkpad: don't take over ws_[gs]et_param on version 2 devices

2019-10-14 Thread Tracey Emery
VERSION1 && > + (aml_evalinteger(sc->sc_acpi, sc->sc_devnode, "PBLG", > + 0, NULL, >sc_brightness) == 0)) { > ws_get_param = thinkpad_get_param; > ws_set_param = thinkpad_set_param; > } -- Tracey Emery

Re: [Patch] Driver for Keyspan USA-19HS

2019-06-04 Thread Tracey Emery
On Mon, Jun 03, 2019 at 11:44:37PM -0400, Cody Cutler wrote: > Hi jcs and tech, the following is a patch which implements jcs's feedback and > adds a man page. > > Note that one must execute `make -C sys/dev/usb' after applying to build. > > Thanks! > > diff --git share/man/man4/Makefile

Re: [Patch] Driver for Keyspan USA-19HS

2019-05-29 Thread Tracey Emery
> > The routine for adding USB devices is to just add them to > /usr/src/sys/dev/usb/usbdevs, then run 'make' in > /usr/src/sys/dev/usb/. That will automatically regenerate usbdevs.h > and usbdevs_data.h. I'm happy to test when the new diff is submitted. I have a USA19HS sitting in my desk.

Re: cp(1) add -l hard link -s symlink options

2019-05-23 Thread Tracey Emery
On Thu, May 23, 2019 at 10:21:34PM +0100, Stuart Henderson wrote: > On 2019/05/23 22:58, Ingo Schwarze wrote: > > Hi Tracey, > > > > Tracey Emery wrote on Thu, May 23, 2019 at 02:35:10PM -0600: > > > > > Attached is a proposed diff for cp(1). It adds the

Re: cp(1) add -l hard link -s symlink options

2019-05-23 Thread Tracey Emery
On Thu, May 23, 2019 at 10:58:15PM +0200, Ingo Schwarze wrote: > Hi Tracey, > > Tracey Emery wrote on Thu, May 23, 2019 at 02:35:10PM -0600: > > > Attached is a proposed diff for cp(1). It adds the -l (hard link) > > and -s (symlink) options. > > I don't like

Re: cp(1) add -l hard link -s symlink options

2019-05-23 Thread Tracey Emery
On Thu, May 23, 2019 at 02:35:10PM -0600, Tracey Emery wrote: > Hello tech@, > > Attached is a proposed diff for cp(1). It adds the -l (hard link) and -s > (symlink) options. These options are available in GNU cp, FreeBSD cp, > and the -l option is at least in NetBSD and Dragonfly

cp(1) add -l hard link -s symlink options

2019-05-23 Thread Tracey Emery
Hello tech@, Attached is a proposed diff for cp(1). It adds the -l (hard link) and -s (symlink) options. These options are available in GNU cp, FreeBSD cp, and the -l option is at least in NetBSD and Dragonfly. I needed the -l option to use the system cp for rsnapshots, instead of their

Re: acpithinkpad: a fix for the x260

2019-03-07 Thread Tracey Emery
No problems here. Tracey On Wed, Mar 06, 2019 at 08:55:15PM -0600, joshua stein wrote: > sthen found that the HKEY version metric failed on the x260 where it > reports version 1 but requires the new ACPI method of changing > backlight. > > This diff tries to do the ACPI method on all machines

Re: acpithinkpad: fix brightness keys, keyboard backlight value

2019-03-05 Thread Tracey Emery
On Tue, Mar 05, 2019 at 02:03:13PM -0600, joshua stein wrote: > Here we go again... > > On at least the ThinkPad X1C6, the screen brightness keys (F5 and > F6) do not work and "wsconsctl keyboard.backlight" doesn't report > the correct value when the keyboard backlight is adjusted with >

Re: httpd server configuration evaluation bug

2018-11-30 Thread Tracey Emery
On Fri, Nov 30, 2018 at 10:16:45AM +0100, Florian Obser wrote: > On Fri, Oct 26, 2018 at 03:08:11PM -0600, Tracey Emery wrote: > > On Mon, Jul 30, 2018 at 10:24:03AM -0600, Base Pr1me wrote: > > > Sorry, this time with the correct diff. > > > > > > On 7/25/18 4

Re: httpd server configuration evaluation bug

2018-10-26 Thread Tracey Emery
On Mon, Jul 30, 2018 at 10:24:03AM -0600, Base Pr1me wrote: > Sorry, this time with the correct diff. > > On 7/25/18 4:15 PM, Base Pr1me wrote: > > Hi, > > > > I discovered that the wrong server configuration is evaluated in the > > server_read_http function. Only the first server in httpd.conf