Advertisement
Guest User

AUR hamachi fix-open-lock.patch

a guest
Sep 30th, 2011
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.43 KB | None | 0 0
  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.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement