Menu

#298 Mandrake .basrhc (etc) fix rmss /sbin from $PATH

2.3
closed-fixed
7
2003-07-31
2002-09-22
No

The fix for MDK's broken root dot files removes /sbin
and /usr/sbin from the root $PATH. This is not
techincally a problem for OSCAR, but we should probably
be a little more clever instead of just blindly
commenting out the PATH-overriding statement. Perhaps
something like the following:

- get the list of dirs that the PATH-overriding
statement sets (call it set A)
- comment out the PATH-overriding statement
- do a test that initiates a new shell and see what the
resulting PATH is (call it set B)
- figure out what directories are in A that are not in B
- add a PATH-appending statement back to the dotfiles
that appends (A-B) directories to the PATH

Or something along those lines.

This is a bit more trouble, but will (hypothetically)
work for any distro, any version of dot files, any set
of directories that "should" be in the PATH (as
determined by the distro authors' original PATH
statement in root's dot files).

Discussion

  • Jason Brechin

    Jason Brechin - 2003-03-06
    • milestone: 165428 --> 2.3
    • priority: 5 --> 7
     
  • Jason Brechin

    Jason Brechin - 2003-03-06

    Logged In: YES
    user_id=274641

    Actually I believe I've had problems with OSCAR on MDK
    because of this...

    There are numerous calls to things in /sbin (like ifconfig and
    service and chkconfig) that are called without full paths.

    I think this should be fixed by putting the paths back in
    $PATH.

     
  • Jason Brechin

    Jason Brechin - 2003-07-16
    • summary: .basrhc (etc) fix rmss /sbin from $PATH --> Mandrake .basrhc (etc) fix rmss /sbin from $PATH
     
  • Thomas Naughton

    Thomas Naughton - 2003-07-31
    • status: open --> closed-fixed
     
  • Thomas Naughton

    Thomas Naughton - 2003-07-31

    Logged In: YES
    user_id=288102

    After discussion, decided to just maintain whatever the
    distro provides and append to end $PATH/${PATH} if they
    don't already.

    This does no worse than the distro & possibly has dups but
    it appears that Csh's don't care about dups and Sh's will
    ... well it won't be too bad.
    Attempts to remove dups would likely cause more of a
    performance hit than benifit.

    Updated and commented RegEx's.

     
MongoDB Logo MongoDB