Guest User

Untitled

a guest
Jul 21st, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. Index: isolate.cpp
  2. ===================================================================
  3. --- isolate.cpp (revision 12)
  4. +++ isolate.cpp (working copy)
  5. @@ -282,7 +282,9 @@
  6. cmnd = confinement_path + "/tmp/.X11-unix";
  7. mkdir(cmnd.c_str(), 0777);
  8. cmnd = LN + " /tmp/.X11-unix/X0 " + confinement_path + "/tmp/.X11-unix/X0";
  9. - system(cmnd.c_str());
  10. + if( system(cmnd.c_str()) == -1 ) {
  11. + cerr << "Warning: Could not execute command \"" << cmnd << "\": " << strerror(errno);
  12. + }
  13.  
  14. restore_privilege();
  15. }
Add Comment
Please, Sign In to add comment