Index: uspace/lib/c/generic/vfs/vfs.c
===================================================================
--- uspace/lib/c/generic/vfs/vfs.c	(revision f2b3d3ea3dc1fbb7a2312b326613bcc88a3bfaf5)
+++ uspace/lib/c/generic/vfs/vfs.c	(revision b00255a70ff1bf87f1e8a4e2806cb362fd99721c)
@@ -58,16 +58,9 @@
 static async_sess_t *vfs_sess = NULL;
 
-/* Current (working) directory. */
 static FIBRIL_MUTEX_INITIALIZE(cwd_mutex);
+
 static int cwd_fd = -1;
 static char *cwd_path = NULL;
 static size_t cwd_size = 0;
-
-/* Previous directory. */
-static FIBRIL_MUTEX_INITIALIZE(pwd_mutex);
-static int pwd_fd = -1;
-static char *pwd_path = NULL;
-static size_t pwd_size = 0;
-
 
 /** Start an async exchange on the VFS session.
@@ -758,21 +751,11 @@
 	fibril_mutex_lock(&cwd_mutex);
 	
-
-	fibril_mutex_lock(&pwd_mutex);
-
-	if (pwd_fd >= 0)
-		close(pwd_fd);
-
-
-	if (pwd_path)
-		free(pwd_path);
-
-
-	pwd_fd = cwd_fd;
-	pwd_path = cwd_path;
-	pwd_size = cwd_size;
-
-	fibril_mutex_unlock(&pwd_mutex);
-
+	if (cwd_fd >= 0)
+		close(cwd_fd);
+	
+	
+	if (cwd_path)
+		free(cwd_path);
+	
 	cwd_fd = fd;
 	cwd_path = abs;
@@ -798,23 +781,4 @@
 	fibril_mutex_unlock(&cwd_mutex);
 	
-	return buf;
-}
-
-
-char *getprevwd(char *buf, size_t size)
-{
-	if (size == 0)
-		return NULL;
-
-	fibril_mutex_lock(&pwd_mutex);
-
-	if ((pwd_size == 0) || (size < pwd_size + 1)) {
-		fibril_mutex_unlock(&pwd_mutex);
-		return NULL;
-	}
-
-	str_cpy(buf, size, pwd_path);
-	fibril_mutex_unlock(&pwd_mutex);
-
 	return buf;
 }
Index: uspace/lib/c/include/unistd.h
===================================================================
--- uspace/lib/c/include/unistd.h	(revision f2b3d3ea3dc1fbb7a2312b326613bcc88a3bfaf5)
+++ uspace/lib/c/include/unistd.h	(revision b00255a70ff1bf87f1e8a4e2806cb362fd99721c)
@@ -74,5 +74,4 @@
 
 extern char *getcwd(char *, size_t);
-extern char *getprevwd(char *, size_t);
 extern int rmdir(const char *);
 extern int chdir(const char *);
