Page MenuHomePhabricator

debmonitor-client: Warning printed with su from buster
Open, LowPublic

Description

On buster, su prints a (otherwise harmless) error when running debmonitor-client-unpriv:

# debmonitor-client-unpriv
su: warning: cannot change directory to /nonexistent: No such file or directory
INFO:debmonitor:Found 493 installed binary packages
INFO:debmonitor:Found 0 upgradable binary packages (including new dependencies)
INFO:debmonitor:Successfully sent the full update to the DebMonitor server

The line is printed to stderr by su, the output changed slightly between stretch and buster:

On Stretch:

# su - debmonitor -c "/usr/bin/debmonitor-client"
No directory, logging in with HOME=/
INFO:debmonitor:Found 550 installed binary packages
INFO:debmonitor:Found 40 upgradable binary packages (including new dependencies)
INFO:debmonitor:Successfully sent the full update to the DebMonitor server

On Buster:

# su - debmonitor -c "/usr/bin/debmonitor-client"
su: warning: cannot change directory to /nonexistent: No such file or directory
INFO:debmonitor:Found 493 installed binary packages
INFO:debmonitor:Found 0 upgradable binary packages (including new dependencies)
INFO:debmonitor:Successfully sent the full update to the DebMonitor server

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 22 2019, 3:09 PM
MoritzMuehlenhoff triaged this task as Low priority.Feb 22 2019, 3:09 PM

I did a little code research: In Debian releases up to Stretch, the su binary is built from the shadow source package. But starting with Buster it switched to the su implementation shipped in util-linux (which is totally different).