Fixes chdir retval
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 27 Aug 2014 01:22:21 +0000 (18:22 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 27 Aug 2014 01:22:21 +0000 (18:22 -0700)
commitc3c0fa9dd7146e17beca20747c15d96af5ecc83c
tree7c144c4e1206e0baa432725e65a0bc0a0703a038
parentac73ea15bd1ddc1ba2d1db19c7927fb876f79fa8
Fixes chdir retval

Was returning -errno on errors, instead of -1.  Also, this cleans up the
discrepancy betweren how do_chdir() and do_fchdir() handle errno and return
values.
kern/src/syscall.c
kern/src/vfs.c