From: Michael Orlitzky Date: Mon, 26 Feb 2018 03:11:10 +0000 (-0500) Subject: Fix an old comment about dirname/basename handling in apply_default_acl(). X-Git-Tag: v0.1.0~19 X-Git-Url: http://gitweb.michael.orlitzky.com/?p=apply-default-acl.git;a=commitdiff_plain;h=b0131edac01695a533c4ffd33774215aec9cd03a Fix an old comment about dirname/basename handling in apply_default_acl(). --- diff --git a/src/apply-default-acl.c b/src/apply-default-acl.c index 0a70b09..b7ef3a8 100644 --- a/src/apply-default-acl.c +++ b/src/apply-default-acl.c @@ -536,9 +536,8 @@ int apply_default_acl(const char* path, /* The file descriptor corresponding to "path" */ int fd = 0; - /* Split "path" into base/dirname parts to be used with openat(). - * We duplicate the strings involved because dirname/basename mangle - * their arguments. + /* Get the parent directory of "path" with dirname(), which happens + * to murder its argument and necessitates a path_copy. */ char* path_copy = strdup(path); if (path_copy == NULL) {