ref: 8040a878de20e3f5a9b5c1b3f169cb55ffc85e57
parent: 80185daba9129d500bf769b8a19af5ffb195c5ee
author: cinap_lenrek <[email protected]>
date: Thu Dec 28 14:13:53 EST 2017
devtls, devssl: avoid ~0UL comparsion (from drawterm)
--- a/sys/src/9/port/devssl.c
+++ b/sys/src/9/port/devssl.c
@@ -334,7 +334,7 @@
if(!emptystr(dir->uid))
kstrdup(&s->user, dir->uid);
- if(dir->mode != ~0UL)
+ if(dir->mode != -1)
s->perm = dir->mode;
free(dir);
--- a/sys/src/9/port/devtls.c
+++ b/sys/src/9/port/devtls.c
@@ -516,7 +516,7 @@
error(Eshortstat);
if(!emptystr(d->uid))
kstrdup(&tr->user, d->uid);
- if(d->mode != ~0UL)
+ if(d->mode != -1)
tr->perm = d->mode;
free(d);