Displaying 1 result from an estimated 1 matches for "ui_len".
Did you mean:
i_len
2001 Mar 15
1
News from AIX
...%.100s", strerror(errno));
}
#endif /* WITH_IRIX_AUDIT */
+
+#ifdef _AIX
+ /* AIX has a "usrinfo" area where logname and
+ * other stuff is stored - a few applications
+ * actually use this and die if it's not set
+ */
+ {
+ char ui_buf[1000];
+ int ui_len;
+
+ ui_len = sprintf( ui_buf,
+ "LOGNAME=%s%cNAME=%s%cTTY=%s%c%c",
+ pw->pw_name, 0,
+ pw->pw_name, 0,
+ ttyname, 0,0);
+ usrinfo( SETUINFO, ui_buf, ui_len );
+ debug("AIX/UsrInfo: set len %d", ui_len);
+ }
+#endif
/* Permanently...