conditional).
* src/login.c: Check that no username is specified with -r.
* src/login.c: Make sure a username is specified with -f.
+ * src/login.c: Explicitly tag the end of the #ifdef RLOGIN
+ sections.
2008-09-20 Nicolas François <nicolas.francois@centraliens.net>
#ifdef RLOGIN
static bool rflg = false;
-#else
+#else /* RLOGIN */
#define rflg false
-#endif
+#endif /* !RLOGIN */
static bool hflg = false;
static bool preauth_flag = false;
fprintf (stderr, _(" %s [-p] [-h host] [-f name]\n"), Prog);
#ifdef RLOGIN
fprintf (stderr, _(" %s [-p] -r host\n"), Prog);
-#endif
+#endif /* RLOGIN */
exit (1);
}
hostname = optarg;
reason = PW_RLOGIN;
break;
-#endif
+#endif /* RLOGIN */
case 'p':
pflg = true;
break;
if (rflg && (hflg || fflg)) {
usage ();
}
-#endif
+#endif /* RLOGIN */
/*
* Allow authentication bypass only if real UID is zero.
#ifdef RLOGIN
char term[128] = "";
-#endif
+#endif /* RLOGIN */
#if defined(HAVE_STRFTIME) && !defined(USE_PAM)
char ptime[80];
#endif
username = NULL;
}
}
-#endif
+#endif /* RLOGIN */
OPENLOG ("login");
if (term[0] != '\0') {
addenv ("TERM", term);
} else
-#endif
+#endif /* RLOGIN */
{
/* preserve TERM from getty */
if (!pflg) {