~vcs-imports/busybox/trunk

« back to all changes in this revision

Viewing changes to coreutils/id.c

  • Committer: Denys Vlasenko
  • Author(s): Christian Franke
  • Date: 2023-11-13 10:32:35 UTC
  • Revision ID: git-v1:a63b60bdd6fa26b867c80d44074118babbae7ffd
Cygwin: regenerate defconfig

Signed-off-by: Christian Franke <christian.franke@t-online.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 * Added -G option Tito Ragusa (C) 2008 for SUSv3.
14
14
 */
15
15
//config:config ID
16
 
//config:       bool "id (7 kb)"
 
16
//config:       bool "id (7.1 kb)"
17
17
//config:       default y
18
18
//config:       help
19
19
//config:       id displays the current user and group ID names.
20
20
//config:
21
21
//config:config GROUPS
22
 
//config:       bool "groups (6.7 kb)"
 
22
//config:       bool "groups (6.8 kb)"
23
23
//config:       default y
24
24
//config:       help
25
25
//config:       Print the group names associated with current user id.
33
33
/* BB_AUDIT SUSv3 compliant. */
34
34
 
35
35
//usage:#define id_trivial_usage
36
 
//usage:       "[OPTIONS] [USER]"
 
36
//usage:       "[-ugGnr"IF_SELINUX("Z")"] [USER]"
37
37
//usage:#define id_full_usage "\n\n"
38
38
//usage:       "Print information about USER or the current user\n"
39
39
//usage:        IF_SELINUX(
52
52
//usage:#define groups_trivial_usage
53
53
//usage:       "[USER]"
54
54
//usage:#define groups_full_usage "\n\n"
55
 
//usage:       "Print the group memberships of USER or for the current process"
 
55
//usage:       "Print the groups USER is in"
56
56
//usage:
57
57
//usage:#define groups_example_usage
58
58
//usage:       "$ groups\n"
258
258
                        bb_error_msg_and_die("can't get process context%s",
259
259
                                username ? " for a different user" : "");
260
260
                }
261
 
                fputs(scontext, stdout);
 
261
                fputs_stdout(scontext);
262
262
        }
263
263
        /* freecon(NULL) seems to be harmless */
264
264
        if (ENABLE_FEATURE_CLEAN_UP)