Skip to content

Commit

Permalink
fixed a bug in dir();(reported by Steve6375,issue 154).
Browse files Browse the repository at this point in the history
  • Loading branch information
chenall committed Sep 5, 2014
2 parents a6b684c + 60f3cb4 commit d4cfc60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions ChangeLog_GRUB4DOS.txt
@@ -1,3 +1,4 @@
2014-09-04 fixed a bug in dir();(reported by Steve6375,issue 154).
2014-09-04 add new command 'raw'.
2014-08-25 fixed a bug in devread(); extend byte_offset to 64-bit.(reported by Steve6375,issue 194).
2014-08-22 gpt partition hide/unhide bug fixed.
Expand Down
4 changes: 2 additions & 2 deletions stage2/disk_io.c
Expand Up @@ -1568,10 +1568,10 @@ dir (char *dirname)
return 0;

if (*dirname != '/')
errnum = ERR_BAD_FILENAME;
return !(errnum = ERR_BAD_FILENAME);

if (fsys_type == NUM_FSYS)
errnum = ERR_FSYS_MOUNT;
return !(errnum = ERR_FSYS_MOUNT);

if (set_filename(dirname) == 0)
return 0;
Expand Down

0 comments on commit d4cfc60

Please sign in to comment.