Fix /bin/pwd with -P for those platforms with no support for it.
Commit cddf082ed4711273305880c7b2cb2add4ea60a1e has introduced an
unfortunate side-effect for some platforms where /bin/pwd doesn't
support -P. On these platforms (as recent as RHEL5) the command
prints a warning - /bin/pwd: ignoring non-option arguments - but
still runs to completion.
Workaround for this is to toss stderr and just go with the result
from stdout. Without this change, pmie_check from cron every few
minutes sends mail with the above warning, once per pmlogger.
Fix /bin/pwd with -P for those platforms with no support for it.
Commit cddf082ed4711273305880c7b2cb2add4ea60a1e has introduced an
unfortunate side-effect for some platforms where /bin/pwd doesn't
support -P. On these platforms (as recent as RHEL5) the command
prints a warning - /bin/pwd: ignoring non-option arguments - but
still runs to completion.
Workaround for this is to toss stderr and just go with the result
from stdout. Without this change, pmie_check from cron every few
minutes sends mail with the above warning, once per pmlogger.