diff --git a/jsc/wasm32/wasm32.jsc b/jsc/wasm32/wasm32.jsc index 85ca12ce..7082c0b7 100644 --- a/jsc/wasm32/wasm32.jsc +++ b/jsc/wasm32/wasm32.jsc @@ -5599,10 +5599,10 @@ ThinThin.unlinkat = function () return 0; }; -ThinThin.mkdirat = function () +ThinThin.mkdirat = function (fdno, pathptr) { let path = CStringAt(this.HEAP8, pathptr); - os.spawn("mkdir " + path); + os.system("mkdir " + this.pwd + "/" + path); return 0; };