Fix comment to be consistent with the code

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This commit is contained in:
Qiang Huang 2015-11-16 19:16:27 +08:00
parent 48fdc50d09
commit 96f0eefa1a
1 changed files with 1 additions and 2 deletions

View File

@ -290,8 +290,7 @@ func getCgroupMounts(m *configs.Mount) ([]*configs.Mount, error) {
return binds, nil return binds, nil
} }
// checkMountDestination checks to ensure that the mount destination is not over the // checkMountDestination checks to ensure that the mount destination is not over the top of /proc.
// top of /proc or /sys.
// dest is required to be an abs path and have any symlinks resolved before calling this function. // dest is required to be an abs path and have any symlinks resolved before calling this function.
func checkMountDestination(rootfs, dest string) error { func checkMountDestination(rootfs, dest string) error {
if filepath.Clean(rootfs) == filepath.Clean(dest) { if filepath.Clean(rootfs) == filepath.Clean(dest) {