Addresses: http://bugs.gnu.org/10317
Reported-by: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
++optind;
}
+ if (simulate_login && !change_environment) {
+ warnx(_("ignore --preserve-environment, it's mutually exclusive to --login."));
+ change_environment = true;
+ }
+
switch (su_mode) {
case RUNUSER_MODE:
if (runuser_user) {
.B USER
nor
.BR LOGNAME .
+The option is ignored if the option \fB\-\-login\fR is specified.
.TP
\fB\-s\fR \fISHELL\fR, \fB\-\-shell\fR=\fISHELL\fR
Runs the specified shell instead of the default. The shell to run is