shithub: mc

Download patch

ref: 65bd7e26119f1a414b43bd6837f0db27641a4b5c
parent: 23496dd0d3a0b274dbdf246222c14a42194849f3
author: Ori Bernstein <[email protected]>
date: Sun Dec 28 20:39:26 EST 2014

fix forgotten cstring() call in chdir().

--- a/libstd/sys+linux-x64.myr
+++ b/libstd/sys+linux-x64.myr
@@ -684,7 +684,7 @@
 const mkdir	= {path, mode;		-> syscall(Sysmkdir, cstring(path), a(mode)) castto(int64)}
 generic ioctl	= {fd, req, arg;	-> syscall(Sysioctl, a(fd), a(req), a(arg)) castto(int64)}
 const getdents64	= {fd, buf;	-> syscall(Sysgetdents64, a(fd), buf castto(byte#), a(buf.len))}
-const chdir	= {dir;	-> syscall(Syschdir, dir)}
+const chdir	= {dir;	-> syscall(Syschdir, cstring(dir))}
 
 /* file stuff */
 const pipe	= {fds;	-> syscall(Syspipe, a(fds))}
--- a/libstd/sys+osx-x64.myr
+++ b/libstd/sys+osx-x64.myr
@@ -710,7 +710,7 @@
 const mkdir	= {path, mode;		-> syscall(Sysmkdir, cstring(path), a(mode)) castto(int64)}
 generic ioctl	= {fd, req, arg;	-> syscall(Sysioctl, a(fd), a(req), a(arg)) castto(int64)}
 const getdirentries64	= {fd, buf, basep;	-> syscall(Sysgetdirentries64, a(fd), buf castto(byte#), a(buf.len), a(basep))}
-const chdir	= {dir;	-> syscall(Syschdir, dir)}
+const chdir	= {dir;	-> syscall(Syschdir, cstring(dir))}
 
 /* fd stuff */
 const pipe	= {fd;	-> __osx_pipe(fd)}