diff options
author | mckay <mckay@FreeBSD.org> | 2002-01-01 06:14:26 +0000 |
---|---|---|
committer | mckay <mckay@FreeBSD.org> | 2002-01-01 06:14:26 +0000 |
commit | 9ad6c9c9e75564250253b83ec9518035db787944 (patch) | |
tree | 592643dcb3bf1cc9fcc7e8c82c24daca12756dae /bin/cp | |
parent | 20372d3e8bb7105d9f9325db6b3fe729d5b32dea (diff) | |
download | FreeBSD-src-9ad6c9c9e75564250253b83ec9518035db787944.zip FreeBSD-src-9ad6c9c9e75564250253b83ec9518035db787944.tar.gz |
Bruce thought some of the comments I added were not clear enough. This is
a combination of my words and his. We will stop fiddling now. :-)
Diffstat (limited to 'bin/cp')
-rw-r--r-- | bin/cp/cp.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/bin/cp/cp.c b/bin/cp/cp.c index 15b4189..19faa28 100644 --- a/bin/cp/cp.c +++ b/bin/cp/cp.c @@ -331,20 +331,20 @@ copy(argv, type, fts_options) if (curr->fts_info == FTS_DP) { /* - * We are finished with this directory. If we didn't - * copy it, or otherwise don't need to change its - * attributes, then we are done. + * We are nearly finished with this directory. If we + * didn't actually copy it, or otherwise don't need to + * change its attributes, then we are done. */ if (!curr->fts_number) continue; /* * If -p is in effect, set all the attributes. * Otherwise, set the correct permissions, limited - * by the umask. The permissions are often correct - * when the directory is initial made, and we can - * avoid a chmod(). Note that mkdir() does not honour - * setuid, setgid and sticky bits, but we normally - * want to preserve them on directories. + * by the umask. Optimise by avoiding a chmod() + * if possible (which is usually the case if we + * made the directory). Note that mkdir() does not + * honour setuid, setgid and sticky bits, but we + * normally want to preserve them on directories. */ if (pflag) rval = setfile(curr->fts_statp, 0); |