ref: f0dddfd4e582a14aa03b142902d5cf72fc3661ac
parent: 09112b83f8191e1567c06f27ba797fd690024396
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Dec 18 18:58:50 EST 2023
fs: add missing line number in syntax error
--- a/dat.h
+++ b/dat.h
@@ -32,7 +32,7 @@
GiB = 1024ULL*MiB,
TiB = 1024ULL*GiB,
- Lgblk = 14,
+ Lgblk = 15,
Blksz = (1ULL<<Lgblk),
Nrefbuf = 1024, /* number of ref incs before syncing */
--- a/user.c
+++ b/user.c
@@ -150,6 +150,7 @@
getfield(&p, ':'); /* skip id */
getfield(&p, ':'); /* skip name */
if((f = getfield(&p, ':')) == nil){
+ fprint(fd, "/adm/users:%d: missing ':' after name\n", lnum);
err = Esyntax;
goto Error;
}