about summary refs log tree commit diff
path: root/Src/utils.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2015-08-21 10:04:13 +0100
committerPeter Stephenson <pws@zsh.org>2015-08-21 10:04:13 +0100
commit61afb8dc8d75106940ac4248632cb14823a3650e (patch)
treee557d9c3a3bcc506f12fe7a4b7ca5fd48680e1c8 /Src/utils.c
parent364e1717f06ff4ac8ec3b9d605ae7c272fa73ff4 (diff)
downloadzsh-61afb8dc8d75106940ac4248632cb14823a3650e.tar.gz
zsh-61afb8dc8d75106940ac4248632cb14823a3650e.tar.xz
zsh-61afb8dc8d75106940ac4248632cb14823a3650e.zip
36262: Replace fix for missing unmeta in chdir().
It was needed in the argument to one of a pair of lchdir()s rather
than within zchdir().

Add tests for the case of a character with 0x83 within it.
Diffstat (limited to 'Src/utils.c')
-rw-r--r--Src/utils.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/Src/utils.c b/Src/utils.c
index 20e01a207..4c4dc55cd 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -6440,10 +6440,15 @@ init_dirsav(Dirsav d)
     d->dirfd = d->level = -1;
 }
 
-/* Change directory, without following symlinks.  Returns 0 on success, -1 *
- * on failure.  Sets errno to ENOTDIR if any symlinks are encountered.  If *
- * fchdir() fails, or the current directory is unreadable, we might end up *
- * in an unwanted directory in case of failure.                            */
+/*
+ * Change directory, without following symlinks.  Returns 0 on success, -1
+ * on failure.  Sets errno to ENOTDIR if any symlinks are encountered.  If
+ * fchdir() fails, or the current directory is unreadable, we might end up
+ * in an unwanted directory in case of failure.
+ *
+ * path is an unmetafied but null-terminated string, as needed by system
+ * calls.
+ */
 
 /**/
 mod_export int