patch-src_files_c 471 B

1234567891011121314
  1. $OpenBSD: patch-src_files_c,v 1.1 2006/02/11 16:15:46 otto Exp $
  2. --- src/files.c.orig Sat Feb 11 09:31:55 2006
  3. +++ src/files.c Sat Feb 11 09:32:01 2006
  4. @@ -1153,7 +1153,9 @@ boolean uncomp;
  5. redirect(filename, RDBMODE, stdin, uncomp);
  6. redirect(cfn, WRBMODE, stdout, uncomp);
  7. }
  8. + (void) setegid(getgid());
  9. (void) setgid(getgid());
  10. + (void) seteuid(getuid());
  11. (void) setuid(getuid());
  12. (void) execv(args[0], (char *const *) args);
  13. perror((char *)0);