[pbs-devel] [PATCH proxmox-backup v4] client: mount: wait for child to return before exiting

Friedrich Weber f.weber at proxmox.com
Tue Jun 18 16:45:47 CEST 2024


On 18/06/2024 16:03, Gabriel Goller wrote:
> When using the `proxmox-backup-client mount` command, the parent sometimes
> exits before we can print any error message. Most notably this happens
> when no PBS_REPOSITORY is passed, as this is the first option checked.
> If the underlying file descriptor has been closed, wait for the client
> to complete and return the error message.
> 
> Reported-by: Friedrich Weber <f.weber at proxmox.com>
> Suggested-by: Christian Ebner <c.ebner at proxmox.com>
> Signed-off-by: Gabriel Goller <g.goller at proxmox.com>

Can confirm this patch makes `sudo proxmox-backup-client mount foo bar
baz` print an error on every invocation, regardless of whether `Default
use_pty` is set in /etc/sudoers or not. Thanks!

Tested-by: Friedrich Weber <f.weber at proxmox.com>




More information about the pbs-devel mailing list