Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37834639
en ru br
ALT Linux repositórios
S:2.38.0.23.0e1ef6779a-alt1
5.0: 2.9-alt5
4.1: 2.5.1-alt4.M41.2
4.0: 2.5-alt4.M40.2
3.0: 2.3.5-alt5

Outros repositórios

Group :: Sistema/Base
RPM: glibc

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: glibc-2.3.5-alt-getopt-optind.patch
Download


# Set proper optind when argc < 1.
--- glibc-2.3.5/posix/getopt.c.orig	2004-03-10 23:13:26 +0000
+++ glibc-2.3.5/posix/getopt.c	2004-04-21 12:04:44 +0000
@@ -399,7 +399,10 @@ _getopt_internal_r (int argc, char *cons
     print_errors = 0;
 
   if (argc < 1)
-    return -1;
+    {
+      d->optind = argc;
+      return -1;
+    }
 
   d->optarg = NULL;
 
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009