Skip to content

Commit e3b074a

Browse files
author
wuminjie
committed
修复isof -l未生效问题
Signed-off-by: wuminjie <wuminjie2@h-partners.com>
1 parent f79b1f8 commit e3b074a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

toys/pending/lsof.c

+9
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,15 @@ static void print_info(void *data)
6969
TT.shown_header=1;
7070
}
7171

72+
#ifdefTOYBOX_OH_ADAPT
73+
if (FLAG(l)) {
74+
printf("%-9s %5d %10d %4s%c%c %7s %18s %9s %10s %s\n",
75+
fi->pi.cmd, fi->pi.pid, fi->pi.uid,
76+
fi->fd, fi->rw, fi->locks, fi->type, fi->device, fi->size_off
77+
fi->node, fi->name);
78+
return;
79+
}
80+
#endif
7281
printf("%-9s %5d %10.10s %4s%c%c %7s %18s %9s %10s %s\n",
7382
fi->pi.cmd, fi->pi.pid, getusername(fi->pi.uid),
7483
fi->fd, fi->rw, fi->locks, fi->type, fi->device, fi->size_off,

0 commit comments

Comments
 (0)
close