diff options
author | 2014-07-05 06:55:29 +0000 | |
---|---|---|
committer | 2014-07-05 06:55:29 +0000 | |
commit | 6992a4ad38ac04f388c685da0c96970343c7870f (patch) | |
tree | 3206385e5fceb3479e4e7066f43a22db4186d549 /usr.bin/rdist/client.c | |
parent | Assume POSIX: uid_t and gid_t (diff) | |
download | wireguard-openbsd-6992a4ad38ac04f388c685da0c96970343c7870f.tar.xz wireguard-openbsd-6992a4ad38ac04f388c685da0c96970343c7870f.zip |
Assume POSIX: uid_t and gid_t
Diffstat (limited to 'usr.bin/rdist/client.c')
-rw-r--r-- | usr.bin/rdist/client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/rdist/client.c b/usr.bin/rdist/client.c index ae4e5c0af73..2673884f50b 100644 --- a/usr.bin/rdist/client.c +++ b/usr.bin/rdist/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.28 2014/07/05 06:45:00 guenther Exp $ */ +/* $OpenBSD: client.c,v 1.29 2014/07/05 06:55:29 guenther Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. @@ -976,7 +976,7 @@ update(char *rname, opt_t opts, struct stat *statp) while (*owner && !isdigit((unsigned char)*owner) && (*owner != '-')) ++owner; - if (owner && (UID_T) atoi(owner) != statp->st_uid) { + if (owner && (uid_t)atoi(owner) != statp->st_uid) { debugmsg(DM_MISC, "owner does not match (%d != %s).\n", statp->st_uid, owner); @@ -1002,7 +1002,7 @@ update(char *rname, opt_t opts, struct stat *statp) while (*group && !isdigit((unsigned char) *group) && (*group != '-')) ++group; - if (group && (UID_T) atoi(group) != statp->st_gid) { + if (group && (gid_t)atoi(group) != statp->st_gid) { debugmsg(DM_MISC, "group does not match (%d != %s).\n", statp->st_gid, group); |