Mercurial > hg > toybox
view toys/pwd.c @ 161:b4c79ab09f9e
Don't error on stat success, and create files with a sensible mode instead of 000
author | Charlie Shepherd <masterdriverz@gentoo.org> |
---|---|
date | Sat, 10 Nov 2007 10:01:28 +0000 |
parents | 7c77c6ec17ee |
children | 25447caf1b4b |
line wrap: on
line source
/* vi: set sw=4 ts=4: */ /* * pwd.c - Print working directory. */ #include "toys.h" int pwd_main(void) { char *pwd = xgetcwd(); xprintf("%s\n", pwd); if (CFG_TOYBOX_FREE) free(pwd); return 0; }