HOME= for root during boot?

From: Aaron Wohl <freebsd_at_soith.com>
Date: Thu, 27 Nov 2003 04:16:22 -0800
During boot (stuff run from rc.local) the enviornment has HOME=/
After boot root logins have HOME=/root.

Seems like a bug to me... left over from the days when HOME for root was
/.  In my case I was trying to run some mysql commands which did not work
because there was no /.my.cnf.  After boot testing them did work because
it looked at /root/.my.cnf

Should the line in /etc/rc:
HOME=/
change to:
HOME=/root

FreeBSD xxx.com 5.1-CURRENT FreeBSD 5.1-CURRENT #1: Mon Nov 10 04:05:00
EST 2003     root_at_xxx.com:/usr/obj/usr/src/sys/RUMBA  i386
Received on Thu Nov 27 2003 - 03:16:25 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:31 UTC