mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fix ls exit code.
This commit is contained in:
parent
d12c420ca1
commit
1ca946af2f
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
/*******************************************************************************
|
||||
|
||||
Copyright(C) Jonas 'Sortie' Termansen 2011, 2012.
|
||||
Copyright(C) Jonas 'Sortie' Termansen 2011, 2012, 2013.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by the Free
|
||||
|
@ -184,6 +184,8 @@ int ls(const char* path)
|
|||
goto cleanup_dir;
|
||||
}
|
||||
|
||||
ret = 0;
|
||||
|
||||
cleanup_dir:
|
||||
closedir(dir);
|
||||
cleanup_entries:
|
||||
|
|
Loading…
Add table
Reference in a new issue