~ubuntu-branches/ubuntu/lucid/mc/lucid

« back to all changes in this revision

Viewing changes to src/chown.c

  • Committer: Bazaar Package Importer
  • Author(s): Patrick Winnertz
  • Date: 2008-09-16 10:38:59 UTC
  • mfrom: (3.1.6 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080916103859-2uwn8w61xk5mbxxq
Tags: 2:4.6.2~git20080311-4
Corrected fix for odt2txt issue (Closes: #492019) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Chown command -- for the Midnight Commander
2
 
   Copyright (C) 1994 Radek Doulik
 
2
   Copyright (C) 1994, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
 
3
   2007 Free Software Foundation, Inc.
3
4
 
4
5
   This program is free software; you can redistribute it and/or modify
5
6
   it under the terms of the GNU General Public License as published by
17
18
 */
18
19
 
19
20
#include <config.h>
 
21
 
 
22
#include <errno.h>
 
23
#include <stdio.h>
20
24
#include <string.h>
21
 
#include <stdio.h>
22
 
#include <errno.h>      /* For errno on SunOS systems         */
23
25
 
24
26
#include <sys/types.h>
25
27
#include <sys/stat.h>
26
 
#ifdef HAVE_UNISTD_H
27
 
#   include <unistd.h>
28
 
#endif
 
28
#include <unistd.h>
29
29
 
30
30
#include "global.h"
31
31
#include "tty.h"
181
181
    /* get and put user names in the listbox */
182
182
    setpwent ();
183
183
    while ((l_pass = getpwent ())) {
184
 
        listbox_add_item (l_user, 0, 0, l_pass->pw_name, NULL);
 
184
        listbox_add_item (l_user, LISTBOX_APPEND_SORTED, 0, l_pass->pw_name, NULL);
185
185
    }
186
186
    endpwent ();
187
187
 
188
188
    /* get and put group names in the listbox */
189
189
    setgrent ();
190
190
    while ((l_grp = getgrent ())) {
191
 
        listbox_add_item (l_group, 0, 0, l_grp->gr_name, NULL);
 
191
        listbox_add_item (l_group, LISTBOX_APPEND_SORTED, 0, l_grp->gr_name, NULL);
192
192
    }
193
193
    endgrent ();
194
194