libfshelp-start-translator.patch 855 B

1234567891011121314151617181920212223242526
  1. Index: start-translator.c
  2. ===================================================================
  3. RCS file: /sources/hurd/hurd/libfshelp/start-translator.c,v
  4. retrieving revision 1.5
  5. diff -u -r1.5 start-translator.c
  6. --- start-translator.c 30 Jan 2001 23:45:32 -0000 1.5
  7. +++ start-translator.c 28 Jul 2008 20:01:50 -0000
  8. @@ -20,6 +20,8 @@
  9. #include "fshelp.h"
  10. #include <unistd.h>
  11. +#include <fcntl.h>
  12. +#include <paths.h>
  13. #include <string.h>
  14. #include <hurd.h>
  15. @@ -43,6 +45,8 @@
  16. ports[INIT_PORT_CWDIR] = getcwdir ();
  17. ports[INIT_PORT_CRDIR] = getcrdir ();
  18. ports[INIT_PORT_AUTH] = getauth ();
  19. + fds[STDIN_FILENO] = file_name_lookup (_PATH_DEVNULL, O_READ, 0);
  20. + fds[STDOUT_FILENO] = file_name_lookup (_PATH_DEVNULL, O_WRITE, 0);
  21. fds[STDERR_FILENO] = getdport (STDERR_FILENO);
  22. err = fshelp_start_translator_long (underlying_open_fn, cookie,