1
0
Fork 0
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:
Jonas 'Sortie' Termansen 2013-04-23 20:03:57 +02:00
parent d12c420ca1
commit 1ca946af2f

View file

@ -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 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 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; goto cleanup_dir;
} }
ret = 0;
cleanup_dir: cleanup_dir:
closedir(dir); closedir(dir);
cleanup_entries: cleanup_entries: