Blame SOURCES/libcap-2.22-signed-sizeof-compare.patch
|
|
340b7f |
diff -up libcap-2.22/libcap/cap_file.c.911878 libcap-2.22/libcap/cap_file.c
|
|
|
340b7f |
--- libcap-2.22/libcap/cap_file.c.911878 2013-05-14 11:45:25.569448468 +0200
|
|
|
340b7f |
+++ libcap-2.22/libcap/cap_file.c 2013-05-14 11:47:04.712036407 +0200
|
|
|
340b7f |
@@ -187,7 +187,7 @@ cap_t cap_get_fd(int fildes)
|
|
|
340b7f |
/* fill the capability sets via a system call */
|
|
|
340b7f |
sizeofcaps = fgetxattr(fildes, XATTR_NAME_CAPS,
|
|
|
340b7f |
&rawvfscap, sizeof(rawvfscap));
|
|
|
340b7f |
- if (sizeofcaps < sizeof(rawvfscap.magic_etc)) {
|
|
|
340b7f |
+ if (sizeofcaps < (int) sizeof(rawvfscap.magic_etc)) {
|
|
|
340b7f |
cap_free(result);
|
|
|
340b7f |
result = NULL;
|
|
|
340b7f |
} else {
|
|
|
340b7f |
@@ -217,7 +217,7 @@ cap_t cap_get_file(const char *filename)
|
|
|
340b7f |
/* fill the capability sets via a system call */
|
|
|
340b7f |
sizeofcaps = getxattr(filename, XATTR_NAME_CAPS,
|
|
|
340b7f |
&rawvfscap, sizeof(rawvfscap));
|
|
|
340b7f |
- if (sizeofcaps < sizeof(rawvfscap.magic_etc)) {
|
|
|
340b7f |
+ if (sizeofcaps < (int) sizeof(rawvfscap.magic_etc)) {
|
|
|
340b7f |
cap_free(result);
|
|
|
340b7f |
result = NULL;
|
|
|
340b7f |
} else {
|