Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jan 2010 14:30:57 +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:  <201001241431.o0OEVIlI060762@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
ed          2010-01-24 14:30:57 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_8)
    lib/libutil          login_tty.c 
  Log:
  SVN rev 202929 on 2010-01-24 14:30:57Z by ed
  
  MFC r202500:
  
    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
  
  Revision  Changes    Path
  1.11.2.2  +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?201001241431.o0OEVIlI060762>