shithub: mc

Download patch

ref: 91eb386702b7d71f5259890d8ff45215b6695ac4
parent: f10d5dc7111a40d0daccee94eb263c8ee770ebad
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Dec 28 20:45:12 EST 2014

use std.chdir.

    we don't want system specific crud here.

--- a/util.myr
+++ b/util.myr
@@ -1,5 +1,4 @@
 use std
-use sys
 
 use "opts.use"
 
@@ -22,7 +21,7 @@
 		std.fatal(1, "could not fork command\n")
 	elif pid == 0
 		if dir.len > 0
-			if sys.chdir(dir) < 0
+			if std.chdir(dir) < 0
 				std.fatal(1, "unable to enter directory %s\n", dir)
 			;;
 		;;