commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 40/61: trans/fakeroot: fix comparison between signed and unsigned


From: Samuel Thibault
Subject: [hurd] 40/61: trans/fakeroot: fix comparison between signed and unsigned
Date: Tue, 27 May 2014 08:32:12 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit 2e009c2f45dca5d8070653042c05c17aa4d0d692
Author: Justus Winter <address@hidden>
Date:   Fri May 16 13:07:40 2014 +0200

    trans/fakeroot: fix comparison between signed and unsigned
    
    * trans/fakeroot.c (netfs_attempt_chown): Fix comparison between
    signed and unsigned integer expressions.
---
 trans/fakeroot.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/trans/fakeroot.c b/trans/fakeroot.c
index 0ea3cbf..3107e29 100644
--- a/trans/fakeroot.c
+++ b/trans/fakeroot.c
@@ -483,12 +483,12 @@ error_t
 netfs_attempt_chown (struct iouser *cred, struct node *np,
                     uid_t uid, uid_t gid)
 {
-  if (uid != -1)
+  if (uid != ~0U)
     {
       set_faked_attribute (np, FAKE_UID);
       np->nn_stat.st_uid = uid;
     }
-  if (gid != -1)
+  if (gid != ~0U)
     {
       set_faked_attribute (np, FAKE_GID);
       np->nn_stat.st_gid = gid;

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]