Project

General

Profile

Actions

Feature #11877

closed

Want a native logname(1)

Added by Robert Mustacchi over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Category:
cmd - userland programs
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

As part of the ksh93 integration in OpenSolaris, logname(1) was made into something that linked against ksh93. Part of the reason for this was because of '6661487 logname reports nothing after running the script command' where using script(1) caused logname(1) to fail because of the fact that there was no longer a controlling tty. To make dealing with ksh93 easier, I've gone ahead and reimplemented logname(1) in a way that is compatible with ksh93's behavior in this situation. Though it would be better if we could solve the underlying getlogin(3C) problem, that's a separate problem regardless of which implementation we are using.

I've tested this by logging in as users and making sure that logname(1) matched that. I also verified that we printed something while inside of script(1) and that it behaves the same way as the current builtin.

Actions

Also available in: Atom PDF