[Fakeroot-commits] [SCM] fakeroot branch, upstream, updated. debian/1.14.3-200-gb232f8a
Clint Adams
schizo at debian.org
Tue Aug 23 13:06:22 UTC 2011
The following commit has been merged in the upstream branch:
commit 0aa89f0b084b712608d8e51a209d10c66ee9a398
Author: Clint Adams <schizo at debian.org>
Date: Mon Sep 28 21:18:10 2009 -0400
Apply patch from U.V. Ravindra to properly typecast uid_t/gid_t assignments.
diff --git a/libfakeroot.c b/libfakeroot.c
index c231ea6..c72f6c1 100644
--- a/libfakeroot.c
+++ b/libfakeroot.c
@@ -213,14 +213,14 @@ static int write_id(const char *key, int id) {
/* Fake ID storage */
-static uid_t faked_real_uid = -1;
-static gid_t faked_real_gid = -1;
-static uid_t faked_effective_uid = -1;
-static gid_t faked_effective_gid = -1;
-static uid_t faked_saved_uid = -1;
-static gid_t faked_saved_gid = -1;
-static uid_t faked_fs_uid = -1;
-static gid_t faked_fs_gid = -1;
+static uid_t faked_real_uid = (uid_t)-1;
+static gid_t faked_real_gid = (gid_t)-1;
+static uid_t faked_effective_uid = (uid_t)-1;
+static gid_t faked_effective_gid = (gid_t)-1;
+static uid_t faked_saved_uid = (uid_t)-1;
+static gid_t faked_saved_gid = (gid_t)-1;
+static uid_t faked_fs_uid = (uid_t)-1;
+static gid_t faked_fs_gid = (gid_t)-1;
/* Read user ID */
--
fakeroot
More information about the Fakeroot-commits
mailing list