1
1

* achown.c (update_permissions): Partly revert recent changes

because they cause infinite recusion.
Этот коммит содержится в:
Pavel Roskin 2005-03-17 22:03:31 +00:00
родитель b2999839e8
Коммит bf653ed2a1
2 изменённых файлов: 12 добавлений и 11 удалений

Просмотреть файл

@ -1,3 +1,8 @@
2005-03-17 Pavel Roskin <proski@gnu.org>
* achown.c (update_permissions): Partly revert recent changes
because they cause infinite recusion.
2005-03-10 Roland Illig <roland.illig@gmx.de> 2005-03-10 Roland Illig <roland.illig@gmx.de>
* x11conn.c: Separated X11 connection handling from key.c. Added * x11conn.c: Separated X11 connection handling from key.c. Added
@ -58,7 +63,7 @@
2004-02-12 Andrew V. Samoilov <sav@bcs.zp.ua> 2004-02-12 Andrew V. Samoilov <sav@bcs.zp.ua>
* glibcompat.c: Add g_strlcat() declaration for glib 1.2.x * glibcompat.c: Add g_strlcat() declaration for glib 1.2.x
2005-02-11 Roland Illig <roland.illig@gmx.de> 2005-02-11 Roland Illig <roland.illig@gmx.de>

Просмотреть файл

@ -70,9 +70,9 @@ static struct {
{ B_SETALL, NORMAL_BUTTON, 4, 0, N_("Set &all")}, { B_SETALL, NORMAL_BUTTON, 4, 0, N_("Set &all")},
{ B_ENTER, NARROW_BUTTON, 0, 47, ""}, { B_ENTER, NARROW_BUTTON, 0, 47, ""},
{ B_ENTER, NARROW_BUTTON, 0, 29, ""}, { B_ENTER, NARROW_BUTTON, 0, 29, ""},
{ B_ENTER, NARROW_BUTTON, 0, 19, ""}, { B_ENTER, NARROW_BUTTON, 0, 19, " "},
{ B_ENTER, NARROW_BUTTON, 0, 11, ""}, { B_ENTER, NARROW_BUTTON, 0, 11, " "},
{ B_ENTER, NARROW_BUTTON, 0, 3, ""} { B_ENTER, NARROW_BUTTON, 0, 3, " "}
}; };
static WButton *b_att[3]; /* permission */ static WButton *b_att[3]; /* permission */
@ -138,13 +138,9 @@ static void set_perm_by_flags (char *s, int f_p)
static void update_permissions (void) static void update_permissions (void)
{ {
char flags[] = "---"; set_perm_by_flags (b_att[0]->text, 0);
set_perm_by_flags (flags, 0); set_perm_by_flags (b_att[1]->text, 3);
button_set_text (b_att[0], flags); set_perm_by_flags (b_att[2]->text, 6);
set_perm_by_flags (flags, 3);
button_set_text (b_att[1], flags);
set_perm_by_flags (flags, 6);
button_set_text (b_att[2], flags);
} }
static umode_t get_perm (char *s, int base) static umode_t get_perm (char *s, int base)