diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2007-04-16T14·45+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2007-04-16T14·45+0000 |
commit | 0a8eeea9d8060b9d25891ccc5a9d55e32bf829ba (patch) | |
tree | 4877eac58258fe77183c023ee6e0aab6fecd5651 | |
parent | 2716f9bc5f947ffdd2835c2a820ca8d35544630e (diff) |
* Remove a warning.
-rw-r--r-- | src/nix-setuid-helper/nix-setuid-helper.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-setuid-helper/nix-setuid-helper.cc b/src/nix-setuid-helper/nix-setuid-helper.cc index 37347cd281c5..26c457fd93c3 100644 --- a/src/nix-setuid-helper/nix-setuid-helper.cc +++ b/src/nix-setuid-helper/nix-setuid-helper.cc @@ -36,7 +36,7 @@ static void secureChown(uid_t uidFrom, gid_t gidFrom, to. */ throw Error(error); - if (uidFrom != -1) { + if (uidFrom != (uid_t) -1) { assert(uidFrom != 0); if (st.st_uid != uidFrom) throw Error(error); |