git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
refactor: decouple the executable file implementations with execve functionality.
[lunaix-os.git]
/
lunaix-os
/
uprog
/
ls.c
diff --git
a/lunaix-os/uprog/ls.c
b/lunaix-os/uprog/ls.c
index da4cca36de2398879793992438125707f59b6c19..bac3c71eb2541e056fd8561b79e61d8d9ad2c31e 100644
(file)
--- a/
lunaix-os/uprog/ls.c
+++ b/
lunaix-os/uprog/ls.c
@@
-6,8
+6,8
@@
int
main(int argc, const char* argv[])
{
char* path = ".";
- if (argc >
0
) {
- path = argv[
0
];
+ if (argc >
1
) {
+ path = argv[
1
];
}
DIR* dir = opendir(path);