Commit 545290b8 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Use UID_MAX instead of -1

parent f8461d09
......@@ -39,6 +39,7 @@
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/limits.h>
#include "mgt/mgt.h"
#include "common/heritage.h"
......@@ -280,7 +281,7 @@ vju_make_workdir(const char *dname, const char *what, struct vsb *vsb)
dname, strerror(errno));
return (1);
}
AZ(chown(dname, -1, vju_gid));
AZ(chown(dname, UID_MAX, vju_gid));
AZ(seteuid(vju_uid));
return (0);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment