Magellan Linux

Diff of /tags/mkinitrd-6_2_0/loginutils/sulogin.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 816 by niro, Fri Apr 24 18:33:46 2009 UTC revision 984 by niro, Sun May 30 11:32:42 2010 UTC
# Line 51  int sulogin_main(int argc UNUSED_PARAM, Line 51  int sulogin_main(int argc UNUSED_PARAM,
51   /* Clear dangerous stuff, set PATH */   /* Clear dangerous stuff, set PATH */
52   sanitize_env_if_suid();   sanitize_env_if_suid();
53    
54  // bb_askpass() already handles this  // bb_ask() already handles this
55  // signal(SIGALRM, catchalarm);  // signal(SIGALRM, catchalarm);
56    
57   pwd = getpwuid(0);   pwd = getpwuid(0);
# Line 77  int sulogin_main(int argc UNUSED_PARAM, Line 77  int sulogin_main(int argc UNUSED_PARAM,
77   int r;   int r;
78    
79   /* cp points to a static buffer that is zeroed every time */   /* cp points to a static buffer that is zeroed every time */
80   cp = bb_askpass(timeout,   cp = bb_ask(STDIN_FILENO, timeout,
81   "Give root password for system maintenance\n"   "Give root password for system maintenance\n"
82   "(or type Control-D for normal startup):");   "(or type Control-D for normal startup):");
83    
# Line 99  int sulogin_main(int argc UNUSED_PARAM, Line 99  int sulogin_main(int argc UNUSED_PARAM,
99    
100   bb_info_msg("System Maintenance Mode");   bb_info_msg("System Maintenance Mode");
101    
102   USE_SELINUX(renew_current_security_context());   IF_SELINUX(renew_current_security_context());
103    
104   shell = getenv("SUSHELL");   shell = getenv("SUSHELL");
105   if (!shell)   if (!shell)

Legend:
Removed from v.816  
changed lines
  Added in v.984