shithub: drawterm-fdroid

Download patch

ref: 22aa6e041ce5d1b9734cabf95e78aad74930cdbc
parent: 15af8dd530c246b1f63ded61a592804d403033aa
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Dec 28 14:09:40 EST 2017

devssl, devtls: fix ~0UL comparsion in wstat on amd64/gcc

--- a/kern/devssl.c
+++ b/kern/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/kern/devtls.c
+++ b/kern/devtls.c
@@ -513,7 +513,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);