Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In a world with security concerns, can anything be complete?


yes. (especially but not only on mobile, where the platform is responsible for a lot of it)

Security concerns are very clustered around limited attack surface, that many apps just don't have.


Yes. The ls Unix command.


Here are a few implementations that did not get the memo:

coreutils ls: https://git.savannah.gnu.org/cgit/coreutils.git/log/src/ls.c

freebsd ls: https://github.com/freebsd/freebsd-src/commits/927f8d8bbbed7...

busybox ls: https://git.busybox.net/busybox/log/coreutils/ls.c

openbsd ls: https://github.com/openbsd/src/commits/master/bin/ls/ls.c

The latter seems to be the most stable, yet has been updated two years ago, many years after its first introduction.


Haha you got me, but I wouldn't be surprised if there were Unicode issues etc as you have to support modern filesystems

Like this https://www.exploit-db.com/exploits/33508


I’m not sure the ls command has to do much if anything to support new file systems since the file system driver should present a standard interface for them.


The standard interface for paths on Linux is "bag of bytes", do you want to see bag of bytes or do you want to see human-readable path?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: