~ubuntu-branches/ubuntu/jaunty/rungetty/jaunty

« back to all changes in this revision

Viewing changes to rungetty.c

  • Committer: Bazaar Package Importer
  • Author(s): Gerfried Fuchs
  • Date: 2008-09-08 17:16:09 UTC
  • mfrom: (4.1.1 hardy)
  • Revision ID: james.westby@ubuntu.com-20080908171609-sf0qwnqo7tkew1wd
Tags: 1.2-13
* Updated manpage-fix to not have minus-signs displayed as hyphens.
* Use filter instead of findstring for DEB_BUILD_OPTIONS parsing as
  suggested by policy.
* Strip unneeded sections from binary. 
* Updated to Standards-Version 3.8.0: added debian/README.source.

Show diffs side-by-side

added added

removed removed

Lines of Context:
275
275
do_prompt (void)
276
276
{
277
277
  FILE *fd;
278
 
  signed int c;
 
278
  char c;
279
279
 
280
280
  write (1, "\n", 1);           /* start a new line */
281
281
  if ((fd = fopen (ISSUE, "r")))
484
484
  /* Write a reset string to the terminal. This is very linux-specific
485
485
     and should be checked for other systems. */
486
486
  if (!noclear)
487
 
    write (0, "\033[H\033[J", 6);
 
487
    write (0, "\033c", 2);
488
488
 
489
489
  sa.sa_handler = SIG_DFL;
490
490
  sa.sa_flags = 0;
571
571
  if (!user)
572
572
    user = getpwnam ("nobody");
573
573
  if (!u_group)
574
 
    u_group = getgrnam ("nogroup");
 
574
    u_group = getgrnam ("nobody");
575
575
  tty = argv[optind];
576
576
  if (!tty)
577
577
    usage ();
588
588
#else
589
589
  putenv ("TERM=vt100");
590
590
#endif
591
 
/* disabled -- get path from init  putenv ("PATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin"); */
 
591
  putenv ("PATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin");
592
592
 
593
593
  /* flush input and output queues, important for modems */
594
594
  ioctl (0, TCFLSH, 2);
597
597
    mingetty_login (logname, tty);
598
598
 
599
599
  setgid (u_group->gr_gid);
600
 
  initgroups (user->pw_name, user->pw_gid);
601
600
  setuid (user->pw_uid);
602
601
 
603
602
  if (progpath)