diff options
author | Jim Meyering <jim@meyering.net> | 1997-12-25 17:05:23 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-12-25 17:05:23 +0000 |
commit | 1f1ea6519b747f98f202fa4bbafda3fbb42701a4 (patch) | |
tree | 17fc903a904ccf1f1a04e6c94063de780c5bce23 /src/install.c | |
parent | f10648f6c76d02eee019b0a53ea6121101b9d690 (diff) | |
download | coreutils-1f1ea6519b747f98f202fa4bbafda3fbb42701a4.tar.xz |
(get_ids): Don't cast GID_T_MAX to long, it might overflow.
Diffstat (limited to 'src/install.c')
-rw-r--r-- | src/install.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/install.c b/src/install.c index e0c4cc7ba..4dc8716d5 100644 --- a/src/install.c +++ b/src/install.c @@ -616,7 +616,7 @@ get_ids (void) { long int tmp_long; if (xstrtol (group_name, NULL, 0, &tmp_long, NULL) != LONGINT_OK - || tmp_long < 0 || tmp_long > (long) GID_T_MAX) + || tmp_long < 0 || tmp_long > GID_T_MAX) error (1, 0, _("invalid group `%s'"), group_name); group_id = (gid_t) tmp_long; } |