[Fakeroot-commits] [SCM] fakeroot branch, upstream, updated. 08ed00124d8b6b445d3b91a9aa15eec638b02f05
Clint Adams
schizo at debian.org
Sun Nov 15 03:17:42 UTC 2009
The following commit has been merged in the upstream branch:
commit 7ff31530613d8f894257ee20553843f7e2f9a82e
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