+
+ /*
+ * The test on utmpent looks silly---after all, if no one is
+ * logged on, why worry about efficiency?---but is useful on
+ * (e.g.) compute servers.
+ */
+ if (utmpent && chdir("/dev")) {
+ syslog(LOG_ERR, "chdir(/dev): %m");
+ exit(1);
+ }