diff options
Diffstat (limited to 'lib/rtapelib.c')
-rw-r--r-- | lib/rtapelib.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/rtapelib.c b/lib/rtapelib.c index fae0db8..0c516e5 100644 --- a/lib/rtapelib.c +++ b/lib/rtapelib.c @@ -504,7 +504,10 @@ rmt_open__ (const char *file_name, int open_mode, int bias, error (EXIT_ON_EXEC_ERROR, errno, _("Cannot redirect files for remote shell")); - sys_reset_uid_gid (); + char const *reseterr = sys_reset_uid_gid (); + if (reseterr) + error (EXIT_ON_EXEC_ERROR, errno, + _("Cannot reset uid and gid: %s"), reseterr); if (remote_user) execl (remote_shell, remote_shell_basename, remote_host, |