Ticket #138 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

[sysbase] missing /etc/fc directories cause incorrect scripts' behavior

Reported by: xmxwx Assigned to: xmxwx
Priority: high Milestone: 3.0
Component: General Version: 2.0
Severity: major Keywords:
Cc:

Description

a.k.a. the NOARP mystery

Some scripts rely on an assumption that cd $OLDPWD will change the current working directory to the one before previous cd. This is no longer true when the "previous cd" failed. $OLDPWD is then not updated so cd $OLDPWD takes the shell to some other (wrong) place. While current working directory is assumed to be invariant across certain scripts, a missing directory can cause some strange, seemingly unrelated problems.

Change History

12/29/06 23:02:50 changed by xmxwx

  • status changed from new to assigned.

12/29/06 23:18:39 changed by xmxwx

To reproduce the NOARP mystery:

ip link show eth0
/etc/rc.d/rc.eth eth0 stop
rm -rf /etc/fc/net/if/eth/eth0/link/ccrypt
/etc/rc.d/rc.eth eth0 start
ip link show eth0

A flatconf directory shouldn't vanish under normal circumstances. However, unwise pkg upgrades and filesystem corruptions happen. We don't want to have ip link arp off then. Do we?

12/29/06 23:53:34 changed by xmxwx

  • status changed from assigned to closed.
  • resolution set to fixed.

fixed in r1178

03/15/08 15:49:29 changed by pjf

  • milestone changed from 2.1rc1 to 3.0.

Milestone 2.1rc1 deleted