Alejandro Colomar
4edda5d8ba
src/sulogin.c: Remove 'static' from a temporary variable
There's no need to keep 'pass' in .bss:
$ grep -nC3 '\<pass\>' src/sulogin.c
58-/*ARGSUSED*/ int main (int argc, char **argv)
59-{
60- int err = 0;
61: char pass[BUFSIZ];
62- char **envp = environ;
63- TERMIO termio;
64-#ifndef USE_PAM
--
166-#endif
167- exit (0);
168- }
169: STRTCPY(pass, cp);
170- erase_pass (cp);
171-
172: if (valid (pass, &pwent)) { /* check encrypted passwords ... */
173- break; /* ... encrypted passwords matched */
174- }
175-
176- sleep (2);
177- (void) puts (_("Login incorrect"));
178- }
179: MEMZERO(pass);
180- (void) alarm (0);
181- (void) signal (SIGALRM, SIG_DFL);
182- environ = newenvp; /* make new environment active */
Cc: Samanta Navarro <ferivoz@riseup.net>
Cc: Serge Hallyn <serge@hallyn.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2024-01-17 18:11:19 -06:00
..
2021-11-17 16:35:50 +01:00
2007-10-07 11:46:07 +00:00
2024-01-05 16:54:55 -06:00
2023-12-04 12:21:55 +01:00
2023-12-15 16:41:47 +01:00
2024-01-05 16:54:55 -06:00
2024-01-05 16:54:55 -06:00
2023-12-03 12:22:11 -06:00
2023-12-03 09:56:13 -06:00
2024-01-05 16:54:55 -06:00
2022-01-03 15:09:17 +01:00
2022-01-03 15:09:17 +01:00
2022-01-03 15:09:17 +01:00
2023-12-15 16:41:47 +01:00
2024-01-05 16:54:55 -06:00
2023-04-26 17:38:24 -05:00
2023-08-21 11:43:18 +02:00
2024-01-05 16:54:55 -06:00
2023-12-14 07:40:40 -06:00
2023-02-08 22:01:01 -06:00
2023-12-03 09:56:13 -06:00
2023-12-03 09:56:13 -06:00
2023-06-08 09:05:39 -05:00
2024-01-05 16:54:55 -06:00
2023-12-04 11:45:09 +01:00
2023-12-15 16:41:47 +01:00
2023-12-03 12:22:11 -06:00
2023-11-25 21:24:38 -06:00
2022-01-03 15:09:17 +01:00
2023-12-03 09:58:19 -06:00
2023-12-15 16:41:47 +01:00
2023-12-03 09:58:19 -06:00
2024-01-05 16:54:55 -06:00
2021-12-23 19:36:50 -06:00
2024-01-05 16:54:55 -06:00
2024-01-05 15:41:12 -06:00
2024-01-05 15:41:12 -06:00
2023-12-02 11:04:35 -06:00
2023-12-15 16:41:47 +01:00
2023-02-09 10:03:03 -06:00
2024-01-17 18:11:19 -06:00
2024-01-05 16:54:55 -06:00
2023-12-03 12:22:11 -06:00
2024-01-05 16:54:55 -06:00
2023-12-15 16:41:47 +01:00