diff options
author | Robert Morris <[email protected]> | 2019-06-01 05:33:38 -0400 |
---|---|---|
committer | Robert Morris <[email protected]> | 2019-06-01 05:33:38 -0400 |
commit | 50cbc7510250a64674d619d13f5912edf08b767d (patch) | |
tree | 874895d11adb72fed959619d85596b062260276f /fs.c | |
parent | 7fd1f1eb0aab4d52852fc4f5e83eafc991f9a627 (diff) | |
download | xv6-labs-50cbc7510250a64674d619d13f5912edf08b767d.tar.gz xv6-labs-50cbc7510250a64674d619d13f5912edf08b767d.tar.bz2 xv6-labs-50cbc7510250a64674d619d13f5912edf08b767d.zip |
first shell prints $ prompt, though no console input yet
Diffstat (limited to 'fs.c')
-rw-r--r-- | fs.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -486,8 +486,9 @@ writei(struct inode *ip, char *src, uint off, uint n) struct buf *bp; if(ip->type == T_DEV){ - if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].write) + if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].write){ return -1; + } return devsw[ip->major].write(ip, src, n); } |