revised bswap patch

This commit is contained in:
Steve Grubb 2009-06-12 17:13:04 +00:00
parent 03b226c18f
commit 2273877e58

View File

@ -1,11 +1,22 @@
diff -urp libcap-ng-0.4.2.orig/src/cap-ng.c libcap-ng-0.4.2/src/cap-ng.c
--- libcap-ng-0.4.2.orig/src/cap-ng.c 2009-06-12 10:56:45.000000000 -0400
diff -urp libcap-ng-0.4.1/src/cap-ng.c libcap-ng-0.4.2/src/cap-ng.c
--- libcap-ng-0.4.1/src/cap-ng.c 2009-06-09 17:44:05.000000000 -0400
+++ libcap-ng-0.4.2/src/cap-ng.c 2009-06-12 11:56:57.000000000 -0400
@@ -32,6 +32,7 @@
@@ -31,6 +31,8 @@
#include <grp.h>
#include <sys/stat.h>
#include <stdarg.h>
#include <errno.h>
+#include <errno.h>
+#include <byteswap.h>
/* External syscall prototypes */
extern int capset(cap_user_header_t header, cap_user_data_t data);
@@ -785,8 +789,8 @@ char *capng_print_caps_numeric(capng_pri
}
}
- if (set & CAPNG_SELECT_BOUNDS)
#ifdef PR_CAPBSET_DROP
+ if (set & CAPNG_SELECT_BOUNDS)
printf("Bounding Set: %08X, %08X\n",
m.bounds[0], m.bounds[1]);
#endif