Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

AUR hamachi fix-open-lock.patch

By: a guest on Sep 30th, 2011  |  syntax: Bash  |  size: 0.43 KB  |  views: 105  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. --- tuncfg.c            2011-10-01 00:34:32.622948018 -0300
  2. +++ tuncfg.c-new        2011-10-01 00:34:03.475694389 -0300
  3. @@ -98,8 +98,8 @@
  4.         if (getuid() != 0)
  5.                 errorf("tuncfg: must be run with superuser permissions\n");
  6.  
  7. -       // lcok
  8. -       fd = open(LOCK_PATH, O_CREAT);
  9. +       // lock
  10. +       fd = open(LOCK_PATH, O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
  11.         if (fd < 0)
  12.                 errorf("tuncfg: cannot open lock file %s -- %s\n",
  13.                         LOCK_PATH, strerror(errno));
  14.  
clone this paste RAW Paste Data