* Fix 64-bit compiler warnings.
This commit is contained in:
parent
52d03276dd
commit
46605fb4f5
2 changed files with 4 additions and 4 deletions
|
|
@ -205,10 +205,10 @@ static void _canonicalisePathMetaData(const Path & path)
|
|||
users group); we check for this case below. */
|
||||
if (st.st_uid != geteuid()) {
|
||||
#if HAVE_LCHOWN
|
||||
if (lchown(path.c_str(), geteuid(), -1) == -1)
|
||||
if (lchown(path.c_str(), geteuid(), (gid_t) -1) == -1)
|
||||
#else
|
||||
if (!S_ISLNK(st.st_mode) &&
|
||||
chown(path.c_str(), geteuid(), -1) == -1)
|
||||
chown(path.c_str(), geteuid(), (gid_t) -1) == -1)
|
||||
#endif
|
||||
throw SysError(format("changing owner of `%1%' to %2%")
|
||||
% path % geteuid());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue