kisslinux / kiss

KISS Linux - Package Manager
https://kisslinux.github.io
MIT License
464 stars 62 forks source link

Don't parse output of 'ls' #273

Closed f1nniboy closed 3 years ago

f1nniboy commented 3 years ago

Parsing the output of ls is considered bad practice, use stat to get the file owner and permissions instead.

dylanaraps commented 3 years ago

stat is not posix and our use of ls is OK (we look at unproblematic fields only).

Thanks for the PR.