[patch] ftpd: UINT_MAX -> UID_MAX

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[patch] ftpd: UINT_MAX -> UID_MAX

Fritjof Bornebusch
Maybe it's better to use UID_MAX instead of UINT_MAX to indicate
the max value is the max possible user id and not the max possible
unsigned int value, even if they are the same at the end of the day.

--f.


Index: ftpd.c
===================================================================
RCS file: /cvs/src/libexec/ftpd/ftpd.c,v
retrieving revision 1.213
diff -u -r1.213 ftpd.c
--- ftpd.c 16 Mar 2016 15:41:10 -0000 1.213
+++ ftpd.c 2 Apr 2016 15:06:58 -0000
@@ -285,7 +285,7 @@
  break;
 
  case 'm':
- minuid = strtonum(optarg, 0, UINT_MAX, &errstr);
+ minuid = strtonum(optarg, 0, UID_MAX, &errstr);
  if (errstr) {
  syslog(LOG_ERR,
     "%s is a bad value for -m, aborting",