ref: 1bede8374b6d10239dc38474bca85cec3c356b29
parent: aff2fa032ba3feb3f2dd3725a0cf71a6da533846
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Nov 30 20:04:40 EST 2023
pack: give a permission error if we have no none user
--- a/pack.c
+++ b/pack.c
@@ -156,6 +156,8 @@
u = uid2user(nogroupid);
if((m = uid2user(d->muid)) == nil)
m = uid2user(noneid);
+ if(u == nil || g == nil || m == nil)
+ error(Eperm);
p = buf;
nn = strlen(d->name);