Opened 15 years ago

Closed 15 years ago

#5789 closed bug (fixed)

Set up environment correctly when logging into telnted on a Haiku box

Reported by: mjw Owned by: nobody
Priority: normal Milestone: R1/alpha2
Component: Applications/Command Line Tools Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

I've noticed that various environmental variables are not set up when I login to a Haiku box using telnet. I have created a patch to /etc/profile to fix that - it sources /boot/system/boot/SetupEnvironment if it thinks it is necessary.

I assume logging in by ssh is affected as well.

Does it look reasonable?

Attachments (1)

profile.patch (384 bytes ) - added by mjw 15 years ago.

Download all attachments as: .zip

Change History (6)

by mjw, 15 years ago

Attachment: profile.patch added

comment:1 by anevilyak, 15 years ago

Component: - GeneralApplications/Command Line Tools

comment:2 by bonefish, 15 years ago

Milestone: R1R1/alpha2
Version: R1/alpha1R1/Development

"BE_HOST_PCU" -> "BE_HOST_CPU"

Other than that I don't see a problem with that solution. Opinions or concerns, anyone?

comment:3 by axeld, 15 years ago

I think this is a good solution.

comment:4 by kallisti5, 15 years ago

I verified this issue is also seen when connecting via sshd to Haiku.

I also verified that the listed patch works great with sshd.

As most login daemons use /etc/profile this is definitely a valid fix.

comment:5 by bonefish, 15 years ago

Resolution: fixed
Status: newclosed

Applied in hrev36536.

Note: See TracTickets for help on using tickets.