This commit is contained in:
Connor Lane Smith
2011-06-08 21:30:33 +01:00
parent 2404eb5b6b
commit ff97891dad
7 changed files with 131 additions and 4 deletions

2
ls.c
View File

@@ -210,7 +210,7 @@ output(Entry *ent)
fmt = "%b %d %H:%M";
strftime(buf, sizeof buf, fmt, localtime(&ent->mtime));
printf("%s %2d %s %s %6lu %s %s", mode, ent->nlink, pw->pw_name,
printf("%s %2ld %s %s %6lu %s %s", mode, (long)ent->nlink, pw->pw_name,
gr->gr_name, (unsigned long)ent->size, buf, ent->name);
if(S_ISLNK(ent->mode)) {
if((len = readlink(ent->name, buf, sizeof buf)) == -1)