summaryrefslogtreecommitdiff
path: root/src/chown-core.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2012-01-08 15:08:30 +0100
committerJim Meyering <meyering@redhat.com>2012-01-09 21:50:08 +0100
commita517386f1bf8c64ee7617cc2c9d0a16a1d85c8c4 (patch)
tree20ad6e7d6aa0baed16f884fca2bccff4dda4983d /src/chown-core.c
parent9af0dced5a2eb167ec7b9dfe3f358f214e45d41a (diff)
downloadcoreutils-a517386f1bf8c64ee7617cc2c9d0a16a1d85c8c4.tar.xz
maint: src/*.c: change remaining quotes (without embedded spaces)
Run this (twice): git grep -E -l '`[^ ]+'\' src/*.c \ |xargs perl -pi -e 's/`([^ ]+'\'')/'\''$1/'
Diffstat (limited to 'src/chown-core.c')
-rw-r--r--src/chown-core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/chown-core.c b/src/chown-core.c
index 0608eb4c7..086998659 100644
--- a/src/chown-core.c
+++ b/src/chown-core.c
@@ -193,9 +193,9 @@ describe_change (const char *file, enum Change_status changed,
/* Change the owner and/or group of the FILE to UID and/or GID (safely)
only if REQUIRED_UID and REQUIRED_GID match the owner and group IDs
- of FILE. ORIG_ST must be the result of `stat'ing FILE.
+ of FILE. ORIG_ST must be the result of 'stat'ing FILE.
- The `safely' part above means that we can't simply use chown(2),
+ The 'safely' part above means that we can't simply use chown(2),
since FILE might be replaced with some other file between the time
of the preceding stat/lstat and this chown call. So here we open
FILE and do everything else via the resulting file descriptor.
@@ -456,7 +456,7 @@ change_file_owner (FTS *fts, FTSENT *ent,
}
/* On some systems (e.g., GNU/Linux 2.4.x),
- the chown function resets the `special' permission bits.
+ the chown function resets the 'special' permission bits.
Do *not* restore those bits; doing so would open a window in
which a malicious user, M, could subvert a chown command run
by some other user and operating on files in a directory