* chown.c (chown_cmd): Use size_trunc_len() to show the file
size. Eliminate c_fsize, which wasn't properly initialized.
Этот коммит содержится в:
родитель
4290d93939
Коммит
b9e4f7c338
@ -1,3 +1,8 @@
|
|||||||
|
2002-02-24 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* chown.c (chown_cmd): Use size_trunc_len() to show the file
|
||||||
|
size. Eliminate c_fsize, which wasn't properly initialized.
|
||||||
|
|
||||||
2002-02-22 Pavel Roskin <proski@gnu.org>
|
2002-02-22 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* man2hlp.c (string_len): Don't exclude characters with codes
|
* man2hlp.c (string_len): Don't exclude characters with codes
|
||||||
|
@ -68,7 +68,6 @@ static int need_update, end_chown;
|
|||||||
static int current_file;
|
static int current_file;
|
||||||
static int single_set;
|
static int single_set;
|
||||||
static WListbox *l_user, *l_group;
|
static WListbox *l_user, *l_group;
|
||||||
static int c_fsize;
|
|
||||||
|
|
||||||
static struct {
|
static struct {
|
||||||
int ret_cmd, flags, y, x;
|
int ret_cmd, flags, y, x;
|
||||||
@ -273,7 +272,7 @@ chown_cmd (void)
|
|||||||
chown_label (0, name_trunc (fname, 15));
|
chown_label (0, name_trunc (fname, 15));
|
||||||
chown_label (1, name_trunc (get_owner (sf_stat.st_uid), 15));
|
chown_label (1, name_trunc (get_owner (sf_stat.st_uid), 15));
|
||||||
chown_label (2, name_trunc (get_group (sf_stat.st_gid), 15));
|
chown_label (2, name_trunc (get_group (sf_stat.st_gid), 15));
|
||||||
g_snprintf (buffer, sizeof (buffer), "%d", c_fsize);
|
size_trunc_len (buffer, 15, sf_stat.st_size, 0);
|
||||||
chown_label (3, buffer);
|
chown_label (3, buffer);
|
||||||
chown_label (4, string_perm (sf_stat.st_mode));
|
chown_label (4, string_perm (sf_stat.st_mode));
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user