Guest User

quotacheck(8) and duid

a guest
Aug 29th, 2011
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. Index: Makefile
  2. ===================================================================
  3. RCS file: /cvs/src/sbin/quotacheck/Makefile,v
  4. retrieving revision 1.6
  5. diff -u -r1.6 Makefile
  6. --- Makefile 21 Sep 1997 11:37:57 -0000 1.6
  7. +++ Makefile 30 Aug 2011 02:59:22 -0000
  8. @@ -6,4 +6,7 @@
  9. MAN= quotacheck.8
  10. .PATH: ${.CURDIR}/../fsck
  11.  
  12. +LDADD+=-lutil
  13. +DPADD+=${LIBUTIL}
  14. +
  15. .include <bsd.prog.mk>
  16. Index: quotacheck.c
  17. ===================================================================
  18. RCS file: /cvs/src/sbin/quotacheck/quotacheck.c,v
  19. retrieving revision 1.25
  20. diff -u -r1.25 quotacheck.c
  21. --- quotacheck.c 27 Oct 2009 23:59:34 -0000 1.25
  22. +++ quotacheck.c 30 Aug 2011 02:59:22 -0000
  23. @@ -50,6 +50,7 @@
  24. #include <grp.h>
  25. #include <errno.h>
  26. #include <unistd.h>
  27. +#include <util.h>
  28. #include <stdio.h>
  29. #include <stdlib.h>
  30. #include <string.h>
  31. @@ -269,7 +270,7 @@
  32. warn("fork");
  33. return 1;
  34. case 0: /* child */
  35. - if ((fi = open(fsname, O_RDONLY, 0)) < 0)
  36. + if ((fi = opendev(fsname, O_RDONLY, 0, NULL)) < 0)
  37. err(1, "%s", fsname);
  38. sync();
  39. dev_bsize = 1;
Advertisement
Add Comment
Please, Sign In to add comment