--- coreutils-6.10/man/Makefile.am.orig 2008-01-11 11:34:22.000000000 +0100 +++ coreutils-6.10/man/Makefile.am 2008-03-02 02:14:20.884410857 +0100 @@ -59,6 +59,7 @@ false.1: $(common_dep) $(srcdir)/false.x ../src/false.c fmt.1: $(common_dep) $(srcdir)/fmt.x ../src/fmt.c fold.1: $(common_dep) $(srcdir)/fold.x ../src/fold.c +getgid.1: $(common_dep) $(srcdir)/getgid.x ../src/getgid.c groups.1: $(common_dep) $(srcdir)/groups.x ../src/groups.c head.1: $(common_dep) $(srcdir)/head.x ../src/head.c hostid.1: $(common_dep) $(srcdir)/hostid.x ../src/hostid.c diff -Nur coreutils-4.5.3.orig/man/getgid.1 coreutils-4.5.3/man/getgid.1 --- coreutils-4.5.3.orig/man/getgid.1 Thu Jan 1 01:00:00 1970 +++ coreutils-4.5.3/man/getgid.1 Sun Oct 27 21:40:54 2002 @@ -0,0 +1,22 @@ +.TH GETGID "1" "October 2002" "getgid (coreutils) 4.5.3" "User Commands" +.SH NAME +getgid \- print ID of given group +.SH SYNOPSIS +.B getgid +\fIGROUPNAME\fR +.SH DESCRIPTION +.PP +Print group ID for GROUPNAME. +.PP +Without any OPTION, print usage information. +.SH AUTHOR +Written by Artur Frysiak. +.SH "REPORTING BUGS" +Report bugs to . +.SH COPYRIGHT +Copyright \(co 1999 Artur Frysiak. +.br +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +.SH "SEE ALSO" +.BR id (1) diff -Nur coreutils-4.5.3.orig/man/pl/getgid.1 coreutils-4.5.3/man/pl/getgid.1 --- coreutils-4.5.3.orig/man/pl/getgid.1 Thu Jan 1 01:00:00 1970 +++ coreutils-4.5.3/man/pl/getgid.1 Sun Oct 27 21:46:48 2002 @@ -0,0 +1,22 @@ +.TH GETGID "1" "Październik 2002" "getgid (coreutils) 4.5.3" "Polecenia użytkownika" +.SH NAZWA +getgid \- wypisuje identyfikator podanej grupy +.SH SKŁADNIA +.B getgid +\fINAZWA-GRUPY\fR +.SH OPIS +.PP +Wypisuje identyfikator grupy NAZWA-GRUPY. +.PP +Bez żadnych opcji podaje sposób użycia. +.SH AUTOR +Napisane przez Artura Frysiaka. +.SH "ZGŁASZANIE BŁĘDÓW" +Błędy proszę zgłaszać (w jęz. polskim lub angielskim) pod . +.SH COPYRIGHT +Copyright \(co 1999 Artur Frysiak. +.br +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +.SH ZOBACZ TAKŻE +.BR id (1) --- coreutils-6.10/src/Makefile.am.orig 2008-03-02 02:12:29.418058752 +0100 +++ coreutils-6.10/src/Makefile.am 2008-03-02 02:14:46.205853844 +0100 @@ -36,7 +36,7 @@ cat cksum comm csplit cut expand fmt fold head join md5sum \ nl od paste pr ptx sha1sum sha224sum sha256sum sha384sum sha512sum \ shuf sort split sum tac tail tr tsort unexpand uniq wc \ - basename date dirname echo env expr factor false \ + basename date dirname echo env expr factor false getgid \ id kill logname pathchk printenv printf pwd \ runcon seq sleep tee \ test true tty whoami yes \ diff -Nur coreutils-4.5.3.orig/src/getgid.c coreutils-4.5.3/src/getgid.c --- coreutils-4.5.3.orig/src/getgid.c Thu Jan 1 01:00:00 1970 +++ coreutils-4.5.3/src/getgid.c Sun Oct 27 21:52:01 2002 @@ -0,0 +1,46 @@ +/* getgid - print GID of given group + Copyright (C) 1999 Artur Frysiak + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +#include +#include +#include +#include "system.h" + +int main(int argc, char **argv) +{ + struct group *gr; + int retval; + + setlocale (LC_ALL, ""); + bindtextdomain (PACKAGE, LOCALEDIR); + textdomain (PACKAGE); + + if (argc > 1) { + gr = getgrnam(argv[1]); + if (gr) { + printf("%d\n",gr->gr_gid); + retval = 0; + } else { + retval = 1; + } + } else { + printf(_("Usage:\n\t%s groupname\n"),argv[0]); + retval = 1; + } + return retval; +} + --- coreutils-4.5.3/po/POTFILES.in.orig Mon Jul 1 23:26:55 2002 +++ coreutils-4.5.3/po/POTFILES.in Fri Nov 1 02:25:41 2002 @@ -61,6 +61,7 @@ src/false.c src/fmt.c src/fold.c +src/getgid.c src/group-list.c src/groups.c src/head.c --- coreutils-6.10/po/pl.po.orig 2008-03-02 02:12:29.526064907 +0100 +++ coreutils-6.10/po/pl.po 2008-03-02 02:15:20.139787629 +0100 @@ -3885,6 +3885,15 @@ msgid "invalid number of columns: %s" msgstr "błędna liczba kolumn: %s" +#: src/getgid.c:37 +#, c-format +msgid "" +"Usage:\n" +"\t%s groupname\n" +msgstr "" +"Składnia:\n" +"\t%s nazwa-grupy\n" + #: src/group-list.c:68 src/id.c:313 src/setuidgid.c:186 #, c-format msgid "failed to get groups for user %s"