Down in the Dumps (a true story)
Barry Shein
bzs at bu-cs.BU.EDU
Thu May 26 02:52:07 AEST 1988
Although the problem you point out is clearly a misfeature/bug (dump
not checking its arguments carefully enough) I think a better approach
would be to write shell or c programs to act as wrappers and thus can
be customized to do whatever checking (including local heuristics) you
want.
Part of the problem (eg. the rm * problem etc) is that people seem to
assume that every command (particularly ones used by priv'd accts)
must be used exactly as is and should have been developed to work as
such. To some extent you're right and it's always a judgement call,
but in terms of dumps I would consider the /etc/dump command just
another operator like if[] or echo to use to write a command script
around, typing directly into memory and jumping to zero has its
hazards.
Note: I don't advocate REPLACING commands or presenting wrappers as
fundamentals, but with some commands (particularly complicated ones
like dump) shell scripts can do much more to cure the problem you
encountered than hacking in a little more arg checking code to the
original command.
-Barry Shein, Boston University
More information about the Comp.unix.wizards
mailing list