Kommentar zur Indizierung von get_userinfo()
Das Ergebnis dieser Funktion kann nicht mit den
Konstanten fuer die Indizierung der Userliste
aus <userinfo.h> verwendet werden.
Change-Id: I24f531704c4c223afefe2904f18e76b45fc8a070
diff --git a/sys/userinfo.h b/sys/userinfo.h
index 05548be..c1b50af 100644
--- a/sys/userinfo.h
+++ b/sys/userinfo.h
@@ -8,7 +8,12 @@
#define _USERINFO_
/*
- * userinfo: what each field of /secure/PASSWD is
+ * Indices for the fields in the userlist of /secure/master/userinfo.c
+ * Important: these are the *internal* field indices. When obtained by
+ * get_userinfo(), the fields in the resulting array are off by +1,
+ * i.e. to get the level, you need to index with USER_LEVEL+1.
+ * TODO: change that and use either correct additional defines or a
+ * TODO::new data structure.
*/
/* password (encrypted) */