Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jan 2010 17:52:35 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/lib/libutil login_tty.c
Message-ID:  <201001171808.o0HI8UZv095862@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
ed          2010-01-17 17:52:35 UTC

  FreeBSD src repository

  Modified files:
    lib/libutil          login_tty.c 
  Log:
  SVN rev 202500 on 2010-01-17 17:52:35Z by ed
  
  Fix a regression that was introduced in r191882.
  
  I changed login_tty() to only work when the application is not a session
  leader yet. This works fine for applications in the base system, but it
  turns out various applications call this function after daemonizing,
  which means they already use their own session.
  
  If setsid() fails, just call tcsetsid() on the current session.
  tcsetsid() will already perform proper security checks.
  
  Reported by:    Oliver Lehmann
  MFC after:      1 week
  
  Revision  Changes    Path
  1.12      +1 -1      src/lib/libutil/login_tty.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001171808.o0HI8UZv095862>