-$Id: CHANGES,v 1.84 2000/09/26 13:17:42 stelian Exp $
+$Id: CHANGES,v 1.85 2000/11/03 18:28:58 stelian Exp $
Changes between versions 0.4b19 and 0.4b20 (released ???????????????)
=====================================================================
6. Made dump able to backup files larger than 2 GB. Note that
dump still doesn't cope with files larger than 4 GB.
+7. Restore the real uid and gid before invoking an external
+ RSH program (big hole when dump or restore is suid root!).
+
Changes between versions 0.4b18 and 0.4b19 (released August 20, 2000)
=====================================================================
#ifndef lint
static const char rcsid[] =
- "$Id: dumprmt.c,v 1.11 2000/01/21 10:17:41 stelian Exp $";
+ "$Id: dumprmt.c,v 1.12 2000/11/03 18:28:58 stelian Exp $";
#endif /* not lint */
#ifdef __linux__
rshcmd[4] = rmt;
rshcmd[5] = NULL;
+ /* Restore the uid and gid. We really don't want
+ * to execute whatever is put into RSH variable with
+ * more priviledges than needed... */
+ setuid(getuid());
+ setgid(getgid());
+
if ((rshpid = piped_child(rshcmd)) < 0) {
msg("cannot open connection\n");
return 0;