]> git.pld-linux.org Git - packages/coreutils.git/blob - coreutils-getgid.patch
- updated to 8.23
[packages/coreutils.git] / coreutils-getgid.patch
1 --- coreutils-8.23/README.orig  2014-07-20 18:31:49.574517705 +0200
2 +++ coreutils-8.23/README       2014-07-20 18:32:59.324514778 +0200
3 @@ -9,7 +9,7 @@
4  
5    [ arch base64 basename cat chcon chgrp chmod chown chroot cksum comm
6    coreutils cp csplit cut date dd df dir dircolors dirname du echo env
7 -  expand expr factor false fmt fold groups head hostid hostname id install
8 +  expand expr factor false fmt fold getgid groups head hostid hostname id install
9    join kill link ln logname ls md5sum mkdir mkfifo mknod mktemp mv nice nl
10    nohup nproc numfmt od paste pathchk pinky pr printenv printf ptx pwd
11    readlink realpath rm rmdir runcon seq sha1sum sha224sum sha256sum sha384sum
12 --- coreutils-8.16.orig/man/getgid.1    1970-01-01 00:00:00.000000000 +0000
13 +++ coreutils-8.16/man/getgid.1 2012-04-18 09:07:17.410850573 +0000
14 @@ -0,0 +1,22 @@
15 +.TH GETGID "1" "October 2002" "getgid (coreutils) 4.5.3" "User Commands"
16 +.SH NAME
17 +getgid \- print ID of given group
18 +.SH SYNOPSIS
19 +.B getgid
20 +\fIGROUPNAME\fR
21 +.SH DESCRIPTION
22 +.PP
23 +Print group ID for GROUPNAME.
24 +.PP
25 +Without any OPTION, print usage information.
26 +.SH AUTHOR
27 +Written by Artur Frysiak.
28 +.SH "REPORTING BUGS"
29 +Report bugs to <feedback@pld-linux.org>.
30 +.SH COPYRIGHT
31 +Copyright \(co 1999 Artur Frysiak.
32 +.br
33 +This is free software; see the source for copying conditions.  There is NO
34 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
35 +.SH "SEE ALSO"
36 +.BR id (1)
37 diff -urN coreutils-8.16.orig//man/getgid.x coreutils-8.16/man/getgid.x
38 --- coreutils-8.16.orig//man/getgid.x   1970-01-01 00:00:00.000000000 +0000
39 +++ coreutils-8.16/man/getgid.x 2012-04-18 09:07:17.410850573 +0000
40 @@ -0,0 +1,4 @@
41 +[NAME]
42 +getgid \- print ID of given group
43 +[DESCRIPTION]
44 +.\" Add any additional description here
45 --- coreutils-8.16.orig/man/pl/getgid.1 1970-01-01 00:00:00.000000000 +0000
46 +++ coreutils-8.16/man/pl/getgid.1      2012-04-18 09:07:17.410850573 +0000
47 @@ -0,0 +1,22 @@
48 +.TH GETGID "1" "Pa¼dziernik 2002" "getgid (coreutils) 4.5.3" "Polecenia u¿ytkownika"
49 +.SH NAZWA
50 +getgid \- wypisuje identyfikator podanej grupy
51 +.SH SK£ADNIA
52 +.B getgid
53 +\fINAZWA-GRUPY\fR
54 +.SH OPIS
55 +.PP
56 +Wypisuje identyfikator grupy NAZWA-GRUPY.
57 +.PP
58 +Bez ¿adnych opcji podaje sposób u¿ycia.
59 +.SH AUTOR
60 +Napisane przez Artura Frysiaka.
61 +.SH "ZG£ASZANIE B£ÊDÓW"
62 +B³êdy proszê zg³aszaæ (w jêz. polskim lub angielskim) pod <feedback@pld-linux.org>.
63 +.SH COPYRIGHT
64 +Copyright \(co 1999 Artur Frysiak.
65 +.br
66 +This is free software; see the source for copying conditions.  There is NO
67 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
68 +.SH ZOBACZ TAK¯E
69 +.BR id (1)
70 --- coreutils-8.16.orig/po/POTFILES.in  2012-03-24 18:22:13.000000000 +0000
71 +++ coreutils-8.16/po/POTFILES.in       2012-04-18 09:07:17.412850440 +0000
72 @@ -66,6 +66,7 @@
73  src/find-mount-point.c
74  src/fmt.c
75  src/fold.c
76 +src/getgid.c
77  src/getlimits.c
78  src/group-list.c
79  src/groups.c
80 --- coreutils-8.16.orig/po/pl.po        2012-03-26 12:08:45.000000000 +0000
81 +++ coreutils-8.16/po/pl.po     2012-04-18 09:07:17.417662632 +0000
82 @@ -4109,6 +4109,15 @@
83  "  \\0NNN   znak o kodzie ASCII wynoszącym NNN (ósemkowo, 1 do 3 cyfr)\n"
84  "  \\xHH    znak o kodzie ASCII wynoszącym HH (szestnastkowo, 1 do 2 cyfr)\n"
85  
86 +#: src/getgid.c:37
87 +#, c-format
88 +msgid ""
89 +"Usage:\n"
90 +"\t%s groupname\n"
91 +msgstr ""
92 +"Składnia:\n"
93 +"\t%s nazwa-grupy\n"
94 +
95  #. This is a proper name. See the gettext manual, section Names.
96  #: src/env.c:32 src/printenv.c:45 src/whoami.c:35
97  msgid "Richard Mlynarik"
98 --- coreutils-8.20/src/local.mk.orig    2012-11-18 07:56:05.651866127 +0100
99 +++ coreutils-8.20/src/local.mk 2012-11-18 07:59:50.728528105 +0100
100 @@ -122,6 +122,7 @@
101  src_false_LDADD = $(LDADD)
102  src_fmt_LDADD = $(LDADD)
103  src_fold_LDADD = $(LDADD)
104 +src_getgid_LDADD = $(LDADD)
105  src_getlimits_LDADD = $(LDADD)
106  src_ginstall_LDADD = $(LDADD)
107  src_groups_LDADD = $(LDADD)
108 --- coreutils-8.16.orig/src/getgid.c    1970-01-01 00:00:00.000000000 +0000
109 +++ coreutils-8.16/src/getgid.c 2012-04-18 09:44:16.000000000 +0000
110 @@ -0,0 +1,88 @@
111 +/* getgid - print GID of given group
112 +   Copyright (C) 1999 Artur Frysiak <wiget@pld-linux.org>
113 +
114 +   This program is free software; you can redistribute it and/or modify
115 +   it under the terms of the GNU General Public License as published by
116 +   the Free Software Foundation; either version 2, or (at your option)
117 +   any later version.
118 +
119 +   This program is distributed in the hope that it will be useful,
120 +   but WITHOUT ANY WARRANTY; without even the implied warranty of
121 +   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
122 +   GNU General Public License for more details.
123 +
124 +   You should have received a copy of the GNU General Public License
125 +   along with this program; if not, write to the Free Software Foundation,
126 +   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
127 +
128 +#include <config.h>
129 +#include <grp.h>
130 +#include <getopt.h>
131 +#include <sys/types.h>
132 +
133 +#include "system.h"
134 +#include "error.h"
135 +#include "long-options.h"
136 +#include "quote.h"
137 +
138 +/* The official name of this program (e.g., no 'g' prefix).  */
139 +#define PROGRAM_NAME "getgid"
140 +
141 +#define AUTHORS proper_name ("Artur Frysiak")
142 +
143 +void
144 +usage (int status)
145 +{
146 +  if (status != EXIT_SUCCESS)
147 +    emit_try_help ();
148 +  else
149 +    {
150 +      printf (_("Usage: %s [OPTION]... [GROUPNAME]...\n"), program_name);
151 +      fputs (_("\
152 +Prints ID of given group name.\
153 +\n\
154 +"), stdout);
155 +      fputs (HELP_OPTION_DESCRIPTION, stdout);
156 +      fputs (VERSION_OPTION_DESCRIPTION, stdout);
157 +      emit_ancillary_info ();
158 +    }
159 +  exit (status);
160 +}
161 +
162 +int
163 +main (int argc, char **argv)
164 +{
165 +  struct group *gr;
166 +
167 +  initialize_main (&argc, &argv);
168 +  set_program_name (argv[0]);
169 +  setlocale (LC_ALL, "");
170 +  bindtextdomain (PACKAGE, LOCALEDIR);
171 +  textdomain (PACKAGE);
172 +
173 +  atexit (close_stdout);
174 +
175 +  parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE_NAME, Version,
176 +                      usage, AUTHORS, (char const *) NULL);
177 +  if (getopt_long (argc, argv, "", NULL, NULL) != -1)
178 +    usage (EXIT_FAILURE);
179 +
180 +  if (argc < optind + 1)
181 +    {
182 +      error (0, 0, _("missing operand"));
183 +      usage (EXIT_FAILURE);
184 +    }
185 +
186 +  if (optind + 2 < argc)
187 +    {
188 +      error (0, 0, _("extra operand %s"), quote (argv[optind + 2]));
189 +      usage (EXIT_FAILURE);
190 +    }
191 +
192 +  gr = getgrnam(argv[optind]);
193 +  if (gr == NULL)
194 +    error (EXIT_FAILURE, errno, _("cannot find group name %s"), quote (argv[optind]));
195 +  else
196 +    printf("%lu\n", (unsigned long int) gr->gr_gid);
197 +  exit(EXIT_SUCCESS);
198 +}
199 --- coreutils-8.20/build-aux/gen-lists-of-programs.sh.orig      2012-10-23 16:14:12.000000000 +0200
200 +++ coreutils-8.20/build-aux/gen-lists-of-programs.sh   2012-11-18 08:48:50.915133486 +0100
201 @@ -66,6 +66,7 @@
202      false
203      fmt
204      fold
205 +    getgid
206      ginstall
207      groups
208      head
This page took 0.052246 seconds and 3 git commands to generate.