patch-src_exmapserver_c 752 B

12345678910111213141516171819202122
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- exmap-console-0.4.1.orig/src/exmapserver.c 2007-02-26 12:00:48.000000000 +0100
  3. +++ exmap-console-0.4.1/src/exmapserver.c 2008-12-14 15:52:07.000000000 +0100
  4. @@ -532,9 +532,9 @@ main (int argc, char ** argv)
  5. }
  6. }
  7. + /* do not try to modprobe
  8. if (getuid() == 0)
  9. {
  10. - /* if running a root, we can make sure that the exmap module is loaded */
  11. if (g_spawn_sync (NULL, (char**)&modp_args, NULL, G_SPAWN_SEARCH_PATH,
  12. NULL, NULL, NULL, NULL, &modp_status, &error))
  13. {
  14. @@ -548,6 +548,7 @@ main (int argc, char ** argv)
  15. error ? error->message : "");
  16. }
  17. }
  18. + */
  19. /* handle SIGPIPE */
  20. struct sigaction sa;