summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pwd_mkdb/pwd_mkdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pwd_mkdb/pwd_mkdb.c')
-rw-r--r--usr.sbin/pwd_mkdb/pwd_mkdb.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/pwd_mkdb/pwd_mkdb.c b/usr.sbin/pwd_mkdb/pwd_mkdb.c
index 40dc511..bb913c4 100644
--- a/usr.sbin/pwd_mkdb/pwd_mkdb.c
+++ b/usr.sbin/pwd_mkdb/pwd_mkdb.c
@@ -505,7 +505,11 @@ scan(fp, pw)
* -- The Who
*/
if (!(p = strchr(line, '\n'))) {
- warnx("line too long");
+ /*
+ * XXX: This may also happen if the last line in a
+ * file does not have a trailing newline.
+ */
+ warnx("line #%d too long", lcnt);
goto fmt;
}
OpenPOWER on IntegriCloud