mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Peach <>
Subject Re: Review Request 55242: Stop using os::system to chown a directory hierarchy.
Date Thu, 12 Jan 2017 00:29:18 GMT

This is an automatically generated e-mail. To reply, visit:

(Updated Jan. 12, 2017, 12:29 a.m.)

Review request for mesos, Benjamin Mahler and Jiang Yan Xu.


Rebase and address review feedback.

Bugs: MESOS-6862

Repository: mesos

Description (updated)

Reimplement os::chown() to use fts(3) rather than sometimes spawning
chown(1). This removes the use of the shell and the corresponding
need to sanitize path arguments.  It also enables us to provide
consistent handling of symbolic links for the recursive and
non-recursive cases. We ensure that symlinks are never followed
and that we always change the ownership of the link itself, not
its referent.

Diffs (updated)

  3rdparty/stout/include/stout/os/posix/chown.hpp c82e2e574019c5ee5f17ea105a6d225006388a45

  3rdparty/stout/include/stout/os/posix/stat.hpp 1ab20e75fc18b336162b62e2f4f23b68f6685183

  3rdparty/stout/tests/os_tests.cpp 30735e28a26ff713469711d63538676ed4e327d9 



`sudo make check` (Fedora 25)


James Peach

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message