summaryrefslogtreecommitdiffstats
path: root/pw/cpdir.c
diff options
context:
space:
mode:
authorUlrich Spörlein <uqs@FreeBSD.org>2011-12-30 10:58:14 +0000
committerUlrich Spörlein <uqs@FreeBSD.org>2011-12-30 10:58:14 +0000
commitaf07fd95ed13319f60efea3bc5c3cae1f58a18b8 (patch)
treea58a9c3529153d8743590ead7421d1b3b5a5fd43 /pw/cpdir.c
parentd49f0518f34bab2eb0f3f131f3ddbdbdb5c70059 (diff)
downloadpw-darwin-af07fd95ed13319f60efea3bc5c3cae1f58a18b8.tar.gz
pw-darwin-af07fd95ed13319f60efea3bc5c3cae1f58a18b8.tar.zst
pw-darwin-af07fd95ed13319f60efea3bc5c3cae1f58a18b8.zip
Spelling fixes for usr.sbin/
Diffstat (limited to 'pw/cpdir.c')
-rw-r--r--pw/cpdir.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pw/cpdir.c b/pw/cpdir.c
index 017c200..c5534e5 100644
--- a/pw/cpdir.c
+++ b/pw/cpdir.c
@@ -83,14 +83,14 @@ copymkdir(char const * dir, char const * skel, mode_t mode, uid_t uid, gid_t gid
if (S_ISDIR(st.st_mode)) { /* Recurse for this */
if (strcmp(e->d_name, ".") != 0 && strcmp(e->d_name, "..") != 0)
copymkdir(dst, src, st.st_mode & _DEF_DIRMODE, uid, gid);
- chflags(dst, st.st_flags); /* propogate flags */
+ chflags(dst, st.st_flags); /* propagate flags */
} else if (S_ISLNK(st.st_mode) && (len = readlink(src, lnk, sizeof(lnk))) != -1) {
lnk[len] = '\0';
symlink(lnk, dst);
lchown(dst, uid, gid);
/*
- * Note: don't propogate special attributes
- * but do propogate file flags
+ * Note: don't propagate special attributes
+ * but do propagate file flags
*/
} else if (S_ISREG(st.st_mode) && (outfd = open(dst, O_RDWR | O_CREAT | O_EXCL, st.st_mode)) != -1) {
if ((infd = open(src, O_RDONLY)) == -1) {
@@ -108,7 +108,7 @@ copymkdir(char const * dir, char const * skel, mode_t mode, uid_t uid, gid_t gid
write(outfd, copybuf, b);
close(infd);
/*
- * Propogate special filesystem flags
+ * Propagate special filesystem flags
*/
fchown(outfd, uid, gid);
fchflags(outfd, st.st_flags);