]> granicus.if.org Git - shadow/commitdiff
* src/login.c: Explicitly tag the end of the #ifdef RLOGIN
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 20 Sep 2008 20:03:04 +0000 (20:03 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 20 Sep 2008 20:03:04 +0000 (20:03 +0000)
sections.

ChangeLog
src/login.c

index 97a5e4ff3b5db62908962e3d7111a9820649f862..c590ac646900456dc2cb7f2a9af69840c6d4d5d7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,8 @@
        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>
 
index 5d31df0c1b8d4846df682ac22d7db174564cca26..4a9cab013491c56f6c1471521bd6849a984c8353 100644 (file)
@@ -100,9 +100,9 @@ static bool fflg = false;
 
 #ifdef RLOGIN
 static bool rflg = false;
-#else
+#else                          /* RLOGIN */
 #define rflg false
-#endif
+#endif                         /* !RLOGIN */
 static bool hflg = false;
 static bool preauth_flag = false;
 
@@ -157,7 +157,7 @@ static void usage (void)
        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);
 }
 
@@ -298,7 +298,7 @@ static void process_flags (int argc, char *const *argv)
                        hostname = optarg;
                        reason = PW_RLOGIN;
                        break;
-#endif
+#endif                         /* RLOGIN */
                case 'p':
                        pflg = true;
                        break;
@@ -315,7 +315,7 @@ static void process_flags (int argc, char *const *argv)
        if (rflg && (hflg || fflg)) {
                usage ();
        }
-#endif
+#endif                         /* RLOGIN */
 
        /*
         * Allow authentication bypass only if real UID is zero.
@@ -428,7 +428,7 @@ int main (int argc, char **argv)
 
 #ifdef RLOGIN
        char term[128] = "";
-#endif
+#endif                         /* RLOGIN */
 #if defined(HAVE_STRFTIME) && !defined(USE_PAM)
        char ptime[80];
 #endif
@@ -545,7 +545,7 @@ int main (int argc, char **argv)
                        username = NULL;
                }
        }
-#endif
+#endif                         /* RLOGIN */
 
        OPENLOG ("login");
 
@@ -584,7 +584,7 @@ int main (int argc, char **argv)
        if (term[0] != '\0') {
                addenv ("TERM", term);
        } else
-#endif
+#endif                         /* RLOGIN */
        {
                /* preserve TERM from getty */
                if (!pflg) {