Re: preliminary kabylake support for inteldrm

2017-09-27 Thread Manuel Giraud
Matthieu Herrb writes: > No visible regression so far on my IvyBridge and SandyBridge laptops. Same here on a skylake. -- Manuel Giraud

remove noises at reboot in azalia(4)

2017-06-28 Thread Manuel Giraud
if (codec->audiofunc < 0) + continue; + azalia_comresp(codec, codec->audiofunc, + CORB_SET_POWER_STATE, CORB_PS_D3, NULL); + DELAY(100); + azalia_codec_delete(codec); + } /* halt CORB/RIRB */

restore -t with file size

2015-11-10 Thread Manuel Giraud
+ break; + case LINK: + Vprintf(stdout, "link"); + break; + } + fprintf(stdout, "%10d\t%10llu\t%s\n", size, (unsigned long long)ino, name); +} + /* * handle unexpected inconsistencies */ -- Manuel Giraud

restore typo

2015-11-09 Thread Manuel Giraud
ory %s\n", name); return (genliteraldir(name, curfile.ino)); case IFLNK: { -- Manuel Giraud

Cache-Control for httpd

2015-09-15 Thread Manuel Giraud
*desc = clt->clt_descreq; struct http_descriptor *resp = clt->clt_descresp; const char *error; - struct kv *ct, *cl; + struct kv *ct, *cl, *cc; char tmbuf[32]; if (desc == NULL || (error = server_httperror_byid(code)) == NULL) @@ -1169,6 +1169,10 @@ server_response_http(struct client *clt, kv_set(cl, "%ld", size) == -1) return (-1); + if ((cc = kv_add(&resp->http_headers, "Cache-Control", NULL)) == NULL || + kv_set(cc, "max-age=%lld", media->media_maxage) == -1) + return (-1); + /* Set last modification time */ if (server_http_time(mtime, tmbuf, sizeof(tmbuf)) <= 0 || kv_add(&resp->http_headers, "Last-Modified", tmbuf) == NULL) -- Manuel Giraud

Re: doas failsafe

2015-07-21 Thread Manuel Giraud
> or whatever? This may just be a recent change though, I only updated > my system 2 days ago. Ok my bad (again): as advised by the man page, I used an absolute path as command in /etc/doas.conf: permit nopass :wheel cmd /sbin/mount with this, I should "doas /sbin/mount". Changi

Re: doas failsafe

2015-07-20 Thread Manuel Giraud
"Ted Unangst" writes: > Manuel Giraud wrote: >> Hi, >> >> I've just shot myself in the foot after /etc/doas.conf tweaking. This >> patch adds a failsafe "permit :wheel" rule in case of syntax error. Is >> this safe enough? Should it be

doas failsafe

2015-07-20 Thread Manuel Giraud
ieving revision 1.6 diff -u -p -u -r1.6 parse.y --- parse.y 19 Jul 2015 22:11:41 - 1.6 +++ parse.y 20 Jul 2015 12:16:11 - @@ -149,7 +149,7 @@ yyerror(const char *fmt, ...) va_list va; va_start(va, fmt); - verrx(1, fmt, va); + vwarnx(fmt, va); } struct keyword { -- Manuel Giraud

Re: [ping] dump -U by default

2015-05-12 Thread Manuel Giraud
7;/') { if (*fs->fs_spec == '/' && strcmp(fs->fs_spec + 1, key) == 0) @@ -387,7 +394,7 @@ lastdump(int arg) lastname = "??"; ITITERATE(i, dtwalk) { if (strncmp(lastname, dtwalk->d

Re: [ping] dump -U by default

2015-05-06 Thread Manuel Giraud
rn = rawname(key); + if (rn != NULL && rp != NULL && strcmp(rn, rp) == 0) return (fs); if (key[0] != '/') { if (*fs->fs_spec == '/' && -- Manuel Giraud

Re: [ping] dump -U by default

2015-05-06 Thread Manuel Giraud
rn = rawname(key); + if (rn != NULL && rp != NULL && strcmp(rn, rp) == 0) return (fs); if (key[0] != '/') { if (*fs->fs_spec == '/' && -- Manuel Giraud

[ping] dump -U by default

2015-04-15 Thread Manuel Giraud
lab.d_uid[1], lab.d_uid[2], lab.d_uid[3], @@ -594,7 +588,7 @@ usage(void) { extern char *__progname; - (void)fprintf(stderr, "usage: %s [-0123456789acnSUuWw] [-B records] " + (void)fprintf(stderr, "usage: %s [-0123456789acnSuWw] [-B records] " "[-b blocksize] [-d density]\n" "\t[-f file] [-h level] [-s feet] " "[-T date] files-to-dump\n", -- Manuel Giraud

Re: [proposal] dump -U by default

2015-04-07 Thread Manuel Giraud
Philip Guenther writes: > On Fri, Apr 3, 2015 at 7:14 AM, Manuel Giraud wrote: >> The following patch replaces the -U flag with a -D flag that forces >> usage of device name in /etc/dumpdates. The default is now to use DUID. >> >> Why?: >> - dump iden

[proposal] dump -U by default

2015-04-03 Thread Manuel Giraud
f (!Uflag) + if (Dflag) ; else if (memcmp(lab.d_uid, &zero_uid, sizeof(lab.d_uid)) == 0) { msg("Cannot find DUID of disk %s\n", disk); -- Manuel Giraud

Re: exclude-list in mtree (2)

2014-06-20 Thread Manuel Giraud
Tobias Stoeckmann writes: > On Fri, Jun 20, 2014 at 04:34:19PM +0200, Manuel Giraud wrote: >> +lbuf = NULL; >> +while ((buf = fgetln(fp, &len))) { >> +if (buf[len - 1] == '\n') { >> +if (len == 1)

Re: exclude-list in mtree (2)

2014-06-20 Thread Manuel Giraud
0 Jun 2014 12:45:35 - @@ -79,6 +79,10 @@ vwalk(void) level = root; specdepth = rval = 0; while ((p = fts_read(t))) { + if (check_excludes(p->fts_name, p->fts_path)) { + fts_set(t, p, FTS_SKIP); + continue; + } switch(p->fts_info) { case FTS_D: break; -- Manuel Giraud

exclude-list in mtree (2)

2014-06-20 Thread Manuel Giraud
t; [-s seed] [-X excludes]\n"); exit(1); } Index: verify.c === RCS file: /cvs/src/usr.sbin/mtree/verify.c,v retrieving revision 1.19 diff -u -p -r1.19 verify.c --- verify.c 27 Oct 2009 23:59:53 - 1.19 +++ verify.c 20 Jun 2014 12:45:35 - @@ -79,6 +79,10 @@ vwalk(void) level = root; specdepth = rval = 0; while ((p = fts_read(t))) { + if (check_excludes(p->fts_name, p->fts_path)) { + fts_set(t, p, FTS_SKIP); + continue; + } switch(p->fts_info) { case FTS_D: break; -- Manuel Giraud

exclude-list in mtree

2014-06-10 Thread Manuel Giraud
= optarg; + break; case '?': default: usage(); @@ -133,6 +137,11 @@ main(int argc, char *argv[]) if (argc) usage(); + if (excl) { + init_excludes(); + read_excludes_file(excl); + } + if (dir && chdir(dir)) error("%s: %s", dir, strerror(errno)); @@ -158,6 +167,6 @@ usage(void) (void)fprintf(stderr, "usage: mtree [-cdeilnqrtUux] [-f spec] [-K keywords] " "[-k keywords] [-p path]\n" - " [-s seed]\n"); + " [-s seed] [-X excludes]\n"); exit(1); } -- Manuel Giraud

remote dump to file

2011-08-25 Thread Manuel Giraud
} #ifdef RDUMP - while ((tapefd = (host ? rmtopen(tape, 2) : + while ((tapefd = (host ? rmtopen(tape, O_WRONLY|O_CREAT) : pipeout ? 1 : open(tape, O_WRONLY|O_CREAT, 0666))) < 0) #else while ((tapefd = (pipeout ? 1 : -- Manuel Giraud

Re: softraid crypto: preallocate crypops and dma buffers.

2011-06-21 Thread Manuel Giraud
ported privately to Owain): Volume Status Size Device softraid0 0 Online53381796864 sd0 CRYPTO 0 Online53381796864 0:0.0 noencl -- Manuel Giraud

lprm -

2011-02-08 Thread Manuel Giraud
process(files[i]->d_name); + if (assasinated || strncmp(files[i]->d_name, current, NAME_MAX)) + process(files[i]->d_name); } rmremote(); /* --8<---cut here---end--->8--- -- Manuel Giraud

backquote TAB

2010-05-25 Thread Manuel Giraud
if (escaping) escaping = 0; - } - toglob[idx] = '\0'; /* * Convert "foo*" (toglob) to an array of strings (words) -- Manuel Giraud

$LINENO in trap

2010-05-18 Thread Manuel Giraud
* no problem with afree(p->trap) in settrap() while still in use. */ - command(trapstr); + command(trapstr, current_lineno); exstat = oexstat; if (i == SIGEXIT_ || i == SIGERR_) { if (p->flags & TF_CHANGED) -- Manuel Giraud